library-picturebook-activity/lesingle-aicreate-client/public/config.js
En fa42eca339 feat: 数据库注释补全、常量枚举重构及多模块优化
- 新增 Flyway V6/V7 迁移脚本,为全部 42 张表、591 个列添加中文注释
- 抽取公共常量类(BaseEntityConstants、CacheConstants、RoleConstants、TenantConstants)
- 新增业务枚举(CommonStatus、RegistrationStatus、WorkStatus 等 11 个)
- 优化赛事/作业/评审/UGC 等模块服务层代码
- 更新乐读派(leai)模块配置与 API 客户端
- 更新 e2e 测试用例及 demo 文件

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 13:37:14 +08:00

45 lines
1.7 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 乐读派 AI 创作系统 — 运行时配置
* 企业上线只需修改此文件,无需重新编译。
*/
window.__LEAI_CONFIG__ = {
// ━━━ 认证模式(决定使用哪组服务地址)━━━━━━━━━
// "hmac" = 开发调试HMAC签名 + 局域网地址) ← 默认
// "token" = 生产环境Bearer Token + 正式地址)
authMode: "token",
// ━━━ 开发环境配置authMode=hmac 时生效)━━━━━
dev: {
apiBaseUrl: "http://192.168.1.120:8080",
wsBaseUrl: "ws://192.168.1.120:8080",
orgId: "LESINGLE888888888",
appSecret: "", // 开发时填入生产环境不需要token模式不使用
phone: "18911223344"
},
// ━━━ 生产环境配置authMode=token 时生效)━━━━
// orgId/phone 由企业重定向URL参数动态传入无需在此配置
// appSecret 仅在企业服务端使用,绝不到达浏览器
prod: {
apiBaseUrl: "http://192.168.1.120:8080",
wsBaseUrl: "ws://192.168.1.120:8080"
},
// ━━━ 品牌定制(两种模式通用)━━━━━━━━━━━━━━━━━
brand: {
title: "乐读派",
subtitle: "AI智能儿童绘本创作",
slogan: "让想象力飞翔",
favicon: "/favicon.ico"
},
// ━━━ 嵌入模式iframe集成时启用━━━━━━━━━━━━━
// "standalone" = 独立页面模式默认redirect认证
// "iframe" = iframe嵌入模式postMessage通信
embedMode: "iframe",
// iframe模式下允许的父页面域名安全校验用
// 例: ["https://enterprise.com", "https://admin.enterprise.com"]
parentOrigins: []
}