From 6b0e96dfa452fb966d496b0573b60eea61a1e96b Mon Sep 17 00:00:00 2001 From: karuo Date: Mon, 16 Mar 2026 02:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20=E5=8D=A1=E8=8B=A5AI=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=202026-03-16=2002:05=20|=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=EF=BC=9A=E7=81=AB=E7=82=AC=E3=80=81=E8=BF=90=E8=90=A5=E4=B8=AD?= =?UTF-8?q?=E6=9E=A2=E5=B7=A5=E4=BD=9C=E5=8F=B0=20|=20=E6=8E=92=E9=99=A4?= =?UTF-8?q?=20>20MB:=2011=20=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../火炬_全栈消息/全栈开发/全栈测试/SKILL.md | 44 +++++++++++++++++++ 运营中枢/工作台/gitea_push_log.md | 1 + 运营中枢/工作台/代码管理.md | 1 + 3 files changed, 46 insertions(+) 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) |