fix(pdd): 彻底修复拼多多模板匹配被来源/平台/sku_code 误拦截

PDD 复用快手模板时,残留的 91kaquan/kuaishou 与误填 sku_code 会让 out_sku_sn 对上模板名仍未命中;改为 OR 匹配并放行常见残留,同时在匹配测试返回拒绝原因诊断。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-09-15 11:28:40 +08:00
co-authored by Cursor
parent d09cce5050
commit 03dffcfbb8
6 changed files with 209 additions and 14 deletions
@@ -400,8 +400,19 @@ export default function ProductMatchPanel() {
</Descriptions.Item>
</Descriptions>
<JsonPreview
value={{ mappingId: testResult.mappingId, candidates: testResult.candidates }}
value={{
mappingId: testResult.mappingId,
candidates: testResult.candidates,
diagnostics: testResult.diagnostics,
}}
/>
{testResult.status !== 'matched' &&
testResult.diagnostics?.rejectSamples?.length ? (
<Typography.Paragraph type="secondary" style={{ marginBottom: 0 }}>
相近未命中模板原因见上方 diagnostics.rejectSamples(常见:来源/平台写成
91kaquan/kuaishou、shop_id 绑错店、sku_code 与 out_sku_sn 不一致)。
</Typography.Paragraph>
) : null}
</div>
) : null}
</div>