前端配置迁至 config/local.js,完善支付、模板库与部署脚本

- 页面直接引用 local.js 设置 SOON_DEPLOY_CONFIG,移除 deploy-config
- Docker sync-config 生成 local.js;更新 README 与 agent-core 说明
- 模板库自动扫描 .soon;新增后端部署/种子/排查脚本
- 完善支付配置、订阅弹窗与后台支付管理页

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
24kycj
2026-06-08 20:48:51 +08:00
parent 88c6ce8ccc
commit 152228d41f
47 changed files with 1448 additions and 486 deletions
+3 -3
View File
@@ -16,13 +16,13 @@
需 [Docker Desktop](https://www.docker.com/products/docker-desktop/)。
```bat
docker\sync-config.ps1 :: 同步 API 地址到 deploy-config.js 与 backend local.php(改端口后必跑)
docker\sync-config.ps1 :: 同步 local.js 与 backend local.php(改端口后必跑)
scripts\start.bat :: 启动
scripts\start.bat stop :: 停止(保留数据库)
scripts\start.bat reset :: 停止并清空数据库卷
```
`frontend-web/assets/deploy-config.js``docker/sync-config.ps1` 根据 `docker/.env` 端口生成,请勿手改 localhost 后提交;生产环境在部署时写入实际 API 地址
生产环境编辑 `frontend-web/config/local.js`(从 `config/local.js.example` 复制);全量更新 frontend 时不要覆盖该文件。本地开发由 `docker/sync-config.ps1` 生成 `local.js`
| 服务 | 默认地址 |
|------|----------|
@@ -44,7 +44,7 @@ scripts\start.bat reset :: 停止并清空数据库卷
- PHP 根目录:`backend-web/public/`
- 数据库:导入 `backend-web/schema.sql`
- 后端:`backend-web/config/local.php.example``local.php`
- 前端 API`frontend-web/assets/deploy-config.js`
- 前端 API`frontend-web/config/local.js`(生产配置,勿覆盖)
支付与 notify 说明见 [docs/PAYMENT.md](docs/PAYMENT.md)。列表分页契约见 [docs/API-PAGINATION.md](docs/API-PAGINATION.md)。