fix: 阻断规格重量数字误当货号 (#273)

This commit is contained in:
chengma
2026-08-18 17:22:36 +08:00
parent 055b5faa36
commit 6f20c05b3f
2 changed files with 24 additions and 2 deletions
+8
View File
@@ -254,6 +254,14 @@ func TestInnerCodeStallMatches_中文括号货号与数字前导零(t *testing.T
}),
want: false,
},
{
name: "规格重量数字不能冒充货号",
stall: "将客大码网批#067",
item: innerCodeTestItem(6, "黑色,2XL【建議67.5-82.5公斤】", map[string]any{
"sku": "将客大码网批-黑色-2XL",
}),
want: false,
},
{
name: "非数字货号不做类似转换",
stall: "A档#A01",