library-picturebook-activity/lesingle-aicreate-client/public/config.js
En 3c24cc3102 feat: 添加CLAUDE.md项目指导文件及AI创作客户端更新
添加 CLAUDE.md 用于 Claude Code 项目导航,包含架构说明和开发规范。
更新 AI 创作客户端至 V4.0,新增后端对接示例项目。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 12:11:15 +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.72:8080",
wsBaseUrl: "ws://192.168.1.72:8080",
orgId: "LESINGLE888888888",
appSecret: "", // 开发时填入生产环境不需要token模式不使用
phone: "18911223344"
},
// ━━━ 生产环境配置authMode=token 时生效)━━━━
// orgId/phone 由企业重定向URL参数动态传入无需在此配置
// appSecret 仅在企业服务端使用,绝不到达浏览器
prod: {
apiBaseUrl: "http://192.168.1.72:8080",
wsBaseUrl: "ws://192.168.1.72: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: []
}