Commit Graph

3 Commits

Author SHA1 Message Date
user9994793890
73b0c00b37 fix: 创建 .coze 配置文件,配置为Python Flask版本
问题:沙箱预览仍然使用旧的Node.js版本配置(scripts/dev.sh)

修复:
1. 创建 .coze 配置文件:
   - requires: python-3.12
   - build: pip install -r requirements.txt
   - run: python app.py

2. 更新 app.py 端口配置:
   - 支持 DEPLOY_RUN_PORT(沙箱环境)
   - 支持 PORT(本地环境)
   - 默认 5000

现在沙箱预览会使用Python Flask版本。

请在IDE中重新启动预览:
1. 点击预览窗口的刷新按钮
2. 或关闭预览后重新打开

Coze-Commit-Type: user
Coze-User-ID: 3722323274763196
Coze-Conversation-ID: 9894087
2026-07-09 15:00:25 +08:00
user9994793890
4750698f43 chore: 清理旧版本文件,只保留Python Flask版本
删除的文件:
- Node.js相关文件:.babelrc, .coze, .next, .npmrc, node_modules, src/, scripts/, components.json, eslint.config.mjs, next-env.d.ts, next.config.ts, package.json, pnpm-lock.yaml, postcss.config.mjs, tsconfig.json, tsconfig.tsbuildinfo
- 旧文档:AGENTS.md, WINDOWS_GUIDE.md
- 测试文件:check_*.py, fix_database.py, force_rebuild.py, test_*.py
- 诊断文档:修复下载问题.md, 如何找到生成的日报.md, 最终诊断指南.md, 查看调试日志.md, 诊断指南.md, 问题已定位.md
- 截图文件:assets/image*.png

保留的文件:
- app.py - Flask主应用
- lib/ - Python业务逻辑模块
- templates/ - HTML模板
- public/reports/ - Excel文件存储
- requirements.txt - Python依赖
- README.md - 更新为Python版本说明
- assets/t_equipment_charge_order.sql - 数据库表结构

现在项目结构清晰,只包含Python Flask版本的核心文件。

Coze-Commit-Type: user
Coze-User-ID: 3722323274763196
Coze-Conversation-ID: 9894087
2026-07-09 14:53:19 +08:00
user9994793890
b6a1b77054 chore: init env 2026-07-07 16:00:36 +08:00