fix(appearance-patent): 代理缺失回填与任务前置提示
- 本地代理回填兼容旧版全局 proxy_url,补报成功后重拉服务端快照 - 创建任务前检查服务端代理,缺失时弹窗拦截并引导配置 - 商标查询失败的真实原因写入结果原因列,不再只显示查询失败
This commit is contained in:
@@ -43,3 +43,16 @@ test('test_failed_hint_marks_task_failed_and_download_later', () => {
|
||||
assert.match(body, /'FAILED'\s*\?\s*'任务已失败'/, '提示文案应按 FAILED 切换为任务已失败')
|
||||
assert.match(body, /下载按钮稍后出现/, '失败后仍提示结果文件生成后会给出下载按钮')
|
||||
})
|
||||
|
||||
// 服务端缺代理时商标维度整批失败,必须在创建任务前弹窗拦截(2026-10-25 32300/32309)。
|
||||
test('test_missing_proxy_blocks_task_creation_with_popup', () => {
|
||||
const parseBody = functionBody('parseFiles')
|
||||
const guardIdx = parseBody.indexOf('ensureBrandCheckProxyReady')
|
||||
const createIdx = parseBody.indexOf('parseAppearancePatent(')
|
||||
assert.ok(guardIdx >= 0, 'parseFiles 必须先做服务端代理检查')
|
||||
assert.ok(createIdx > guardIdx, '代理检查必须发生在创建任务之前')
|
||||
|
||||
const guardBody = functionBody('ensureBrandCheckProxyReady')
|
||||
assert.match(guardBody, /ElMessageBox\.alert/, '缺代理时应弹窗提示,不能只 console.warn')
|
||||
assert.match(guardBody, /密钥设置/, '弹窗要告诉用户去哪里补代理')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user