fix: 阻断规格重量数字误当货号 (#273)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user