feat(brand): 品牌检测建单可选本机/线上采集(V212),默认本机+排队相位可见

This commit is contained in:
2026-11-18 15:19:08 +08:00
parent 83e9bbe71a
commit 96afb685c2
22 changed files with 566 additions and 25 deletions
+7 -2
View File
@@ -18,7 +18,7 @@ function mockRequest(
}
/**
* 采集路由开关读取口:前端两个工具页据这两个布尔决定「启动」走本地客户端还是后台。
* 采集路由开关读取口:前端工具页据这几个布尔决定「启动」走本地客户端还是后台。
* 只钉 URL 与返回值原样透传——开关真值来自服务端,前端不自己造默认。
*/
test('test_collect_routing_url_and_payload', async (t) => {
@@ -27,7 +27,11 @@ test('test_collect_routing_url_and_payload', async (t) => {
mockRequest(t, (config) => {
captured = config
return Promise.resolve({
data: { success: true, message: 'ok', data: { appearancePatentLocal: true, similarAsinLocal: false } },
data: {
success: true,
message: 'ok',
data: { appearancePatentLocal: true, similarAsinLocal: false, brandLocal: true },
},
})
})
@@ -37,4 +41,5 @@ test('test_collect_routing_url_and_payload', async (t) => {
assert.equal(captured.method, 'GET')
assert.equal(routing.appearancePatentLocal, true)
assert.equal(routing.similarAsinLocal, false)
assert.equal(routing.brandLocal, true)
})