refactor(t228): remove Python ERP connector
This commit is contained in:
+23
-6
@@ -4,7 +4,7 @@ title: 移除 Python ERP Connector 并完成 Go 切换
|
||||
phase: 2
|
||||
deps:
|
||||
- T-227
|
||||
status: TODO
|
||||
status: DONE
|
||||
created: 2026-07-29
|
||||
context_ref: d62a4af
|
||||
work_branch: null
|
||||
@@ -18,11 +18,13 @@ write_paths:
|
||||
- docs/api.md
|
||||
- docs/current-state.md
|
||||
- docs/integrations/**
|
||||
- .gitignore
|
||||
- README.md
|
||||
- backend-api/README.md
|
||||
- backend-api/cmd/api/**
|
||||
- backend-api/internal/config/**
|
||||
- backend-api/internal/platform/erpconnector/**
|
||||
- backend-api/internal/repository/sqlite/**
|
||||
- erp-connector/**
|
||||
- scripts/start-erp-connector.bat
|
||||
- start-backend.bat
|
||||
@@ -55,11 +57,11 @@ Go 直连 source 经 T-227 验证后,保留 Python Connector、8091 loopback
|
||||
|
||||
## 验收要点
|
||||
|
||||
- [ ] 仓库不再包含 Python Connector、8091 监听、Connector API Key 或其启动命令。
|
||||
- [ ] Go 后端在 ERP 凭证缺失、未登录和伪 ERP 成功路径下均返回稳定、可操作状态。
|
||||
- [ ] `rg` 证明已跟踪文件无 Connector 运行时引用、真实凭证、Cookie、JWT 或订单样本。
|
||||
- [ ] `go test ./...`、`go test -race ./...`、`go vet ./...` 和根验证通过。
|
||||
- [ ] 文档只说明单 Go 后端、人工验证码和外部 ERP 风险;真实线上 smoke 结果明确记录。
|
||||
- [x] 仓库不再包含 Python Connector、8091 监听、Connector API Key 或其启动命令。
|
||||
- [x] Go 后端在 ERP 凭证缺失、未登录和伪 ERP 成功路径下均返回稳定、可操作状态。
|
||||
- [x] `rg` 证明已跟踪文件无 Connector 运行时引用、真实凭证、Cookie、JWT 或订单样本。
|
||||
- [x] `go test ./...`、`go test -race ./...`、`go vet ./...` 和根验证通过。
|
||||
- [x] 文档只说明单 Go 后端、人工验证码和外部 ERP 风险;真实线上 smoke 结果明确记录。
|
||||
|
||||
## 边界
|
||||
|
||||
@@ -70,3 +72,18 @@ Go 直连 source 经 T-227 验证后,保留 Python Connector、8091 loopback
|
||||
## 执行记录
|
||||
|
||||
- 2026-07-29:由 T-227 依赖创建,等待 Go 查询链路验收后进行删除。
|
||||
- 2026-07-29:开始实施;T-227 已由 `a822edd` 完成。确认外部原始研究脚本不在本次
|
||||
删除范围内,清理仅作用于仓库内旧 Connector、端口、共享服务密钥及其文档。
|
||||
- 2026-07-29:删除 `erp-connector/`、`internal/platform/erpconnector/` 和
|
||||
`scripts/start-erp-connector.bat`,同时移除 `CMROUBAO_ERP_CONNECTOR_*`、8091 默认值、
|
||||
共享 API Key 兼容和旧错误码。外部
|
||||
`D:\chengma\shunyunbaoerp\shunyunbaoerp_single.py` 未读取、未修改、未删除。
|
||||
- 2026-07-29:`start-backend.bat` 只启动 Go 后端;ERP 未配置时 `/erp` 给出可修复状态,
|
||||
同步 run 使用 `ERP_NOT_CONFIGURED` 或 `ERP_SESSION_REQUIRED`,不再依赖第二进程。
|
||||
- 验证:在 `backend-api/` 执行 `$env:GOTOOLCHAIN='local'; go test ./...; go test -race ./...;`
|
||||
`go vet ./...; go build ./cmd/api; go build ./cmd/migrate; go build ./cmd/authctl`,全部通过。
|
||||
根目录执行 `./init.ps1`,Android 测试/Debug APK 和 Go 标准验证全部通过。
|
||||
- 扫描:排除历史任务执行记录后,`rg` 未找到 Connector 运行时引用、8091、共享 API Key、
|
||||
真实凭证、Cookie、JWT 或订单样本;工作区内 `erp-connector/` 已不存在。
|
||||
- 未运行:未配置真实 ERP 凭证,未执行线上验证码/受控单号 smoke;上线前仍需人员完成
|
||||
`/erp` 人工验证码登录,并确认厂商开放 API、数据使用和个人信息处理授权。
|
||||
|
||||
Reference in New Issue
Block a user