diff --git a/04_卡火(火)/火炬_全栈消息/全栈开发/全栈测试/SKILL.md b/04_卡火(火)/火炬_全栈消息/全栈开发/全栈测试/SKILL.md index eac9f28e..6a7fa92f 100644 --- a/04_卡火(火)/火炬_全栈消息/全栈开发/全栈测试/SKILL.md +++ b/04_卡火(火)/火炬_全栈消息/全栈开发/全栈测试/SKILL.md @@ -155,6 +155,50 @@ curl -s -o /dev/null -w "HTTP %{http_code} | %{time_total}s" http://localhost:$P - 错误响应有明确的错误信息 - 不暴露内部错误细节给前端 +5. **API 响应字段差异防御**(2026-03-15 沉淀): + - 不同端点的数据字段名可能不同(`data`/`results`/`orders`/`records`) + - 测试脚本解析前先 `print(list(response.keys()))` 确认结构 + - 聚合统计端点的总数必须与列表端点的实际条数交叉验证 + +--- + +### Step 3.5:小程序/移动端代码审查(2026-03-15 新增) + +> 适用于项目包含微信小程序或移动端的情况。 + +1. **页面全量扫描**: + - 读 `app.json` 获取所有注册页面 + - 逐页检查 `.js` / `.wxml` / `.wxss` + +2. **API 路径合规**: + - 小程序只调 `/api/miniprogram/*` + - 管理端只调 `/api/admin/*` + `/api/db/*` + - 发现混调即为 Bug + +3. **废弃 API 检查**: + ```bash + grep -rn "getUserProfile\|createCanvasContext" miniprogram/ + ``` + +4. **模块语法统一**: + ```bash + grep -rn "export default" miniprogram/utils/ + ``` + 小程序默认不支持 ES Module,`export default` 会运行报错。 + +5. **硬编码搜索**: + ```bash + grep -rn "apiBase\|appId\|mchId" miniprogram/ + ``` + +6. **死代码/测试残留**: + ```bash + grep -rn "mock\|Mock\|测试模式\|test mode" miniprogram/pages/ + grep -rc "console.log" miniprogram/pages/ | grep -v ":0$" + ``` + +7. **核心流程审查**:逐条走通 登录→阅读→购买→VIP→分销→提现→匹配 + --- ### Step 4:数据库一致性检查 diff --git a/运营中枢/工作台/gitea_push_log.md b/运营中枢/工作台/gitea_push_log.md index 9ad1ad49..252cb16a 100644 --- a/运营中枢/工作台/gitea_push_log.md +++ b/运营中枢/工作台/gitea_push_log.md @@ -369,3 +369,4 @@ | 2026-03-16 00:07:17 | 🔄 卡若AI 同步 2026-03-16 00:07 | 更新:运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 11 个 | | 2026-03-16 00:21:12 | 🔄 卡若AI 同步 2026-03-16 00:21 | 更新:运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 11 个 | | 2026-03-16 01:50:39 | 🔄 卡若AI 同步 2026-03-16 01:50 | 更新:运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 11 个 | +| 2026-03-16 02:05:00 | 🔄 卡若AI 同步 2026-03-16 02:04 | 更新:卡木、火炬、运营中枢、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 11 个 | diff --git a/运营中枢/工作台/代码管理.md b/运营中枢/工作台/代码管理.md index 0efb2b53..106e61da 100644 --- a/运营中枢/工作台/代码管理.md +++ b/运营中枢/工作台/代码管理.md @@ -372,3 +372,4 @@ | 2026-03-16 00:07:17 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-16 00:07 | 更新:运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 11 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) | | 2026-03-16 00:21:12 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-16 00:21 | 更新:运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 11 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) | | 2026-03-16 01:50:39 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-16 01:50 | 更新:运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 11 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) | +| 2026-03-16 02:05:00 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-16 02:04 | 更新:卡木、火炬、运营中枢、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 11 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |