library-picturebook-activity/lesingle-aicreate-client/public/config.js

45 lines
1.7 KiB
JavaScript
Raw Permalink Normal View History

/**
* 乐读派 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: []
}