- 新增 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>
45 lines
1.7 KiB
JavaScript
45 lines
1.7 KiB
JavaScript
/**
|
||
* 乐读派 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: []
|
||
}
|