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:
@@ -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>
|
||||
|
||||
@@ -349,6 +349,26 @@ export function testAdminKuaishouProductMatch(rawPayload: string) {
|
||||
mappingId: number | null
|
||||
rule: WorkProductRule | null
|
||||
candidates: Array<{ ruleKey: string; score: number; mappingId: number | null }>
|
||||
diagnostics?: {
|
||||
outSkuSn: string
|
||||
orderProvider: string
|
||||
orderPlatform: string
|
||||
orderShopId: string
|
||||
contextSellerId: string
|
||||
legacyFallbackEnabled: boolean
|
||||
useLegacyFallback: boolean
|
||||
enabledRules: number
|
||||
enabledMappings: number
|
||||
rejectSamples: Array<{
|
||||
ruleKey: string
|
||||
productName: string
|
||||
provider: string
|
||||
platform: string
|
||||
shopId: string
|
||||
skuCode: string
|
||||
reason: string
|
||||
}>
|
||||
}
|
||||
}>('/api/v1/admin/worker-platform/product-match-test', { rawPayload })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user