From 7b70ec840faeaa739a962d0dc9cf6932aa5cee0a Mon Sep 17 00:00:00 2001 From: ila <2+ila@noreply.git.ilapage.cn> Date: Tue, 29 Sep 2026 10:18:04 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E6=B7=98=E5=AE=9D?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=81=9C=E6=AD=A2=E4=B8=8E=E9=99=8D=E9=A2=91?= =?UTF-8?q?=E8=A7=84=E5=88=99=20(#21)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Local-Development-and-Verification.-.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Local-Development-and-Verification.-.md b/Local-Development-and-Verification.-.md index ad556a9..5a481b9 100644 --- a/Local-Development-and-Verification.-.md +++ b/Local-Development-and-Verification.-.md @@ -1,5 +1,21 @@ # 本地开发与验证 +## 淘宝风控停止门验证(2026-09-29) + +从仓库根目录先完成前端资源构建,再执行嵌入这些资源的 Go 测试,避免两者同时更新/读取 `frontend/dist`: + +```powershell +npm --prefix frontend run build +go test ./... +go test -race ./... +go vet ./... +& "$env:USERPROFILE\go\bin\wails.exe" build -o cmsp21.exe +``` + +`-race` 需要本机支持 CGO 的 C 编译器。`app_video_test.go` 使用临时 SQLite 和模拟页面,覆盖深度检查、图搜、详情及疑似风控停止后的状态保留。`internal/taobao/access_test.go` 覆盖明确提示、重定向、同批去重/复用、候选上限与可取消等待;`internal/task/task_test.go` 覆盖停批不计失败及保留当前位置。测试不打开真实专属 Profile、不向淘宝发请求、不写真实店铺。 + +新默认配置为 `search_top_n=5`、`wait_seconds_min=10`、`wait_seconds_max=20`,旧明确配置保持兼容。本次本机旧组合 20/2/4 已按用户授权改为新参数,仅修改这三个数值,未改变其他字段和凭据。平台恢复时间、真实风控触发率及 Windows WebView2 实际提示须由用户恢复访问后观察,模拟测试不能证明平台解除限制。 + ## erpgo 查询配置与验证(2026-09-28) 内部使用者从「参数设置 → erpgo 商品查询」填写服务根地址和 API Key,再点击「保存设置」。Key 默认遮蔽,可主动查看;保存失败保留输入。原「货憨憨 ERP 账号」继续用于视频上传,不能因为查询接入而删掉。