敏感词修改代码结构
This commit is contained in:
@@ -22,6 +22,7 @@ var (
|
||||
2: 15347484581335, // 蔬菜类
|
||||
3: 15347484581339, // 其他蔬菜类休闲食品
|
||||
}
|
||||
sensitiveWordRegexp = regexp.MustCompile(`商品名称中含有敏感词(\[.*\])`)
|
||||
)
|
||||
|
||||
func (p *PurchaseHandler) GetStoreSkusBatchSize(funcID int) (batchSize int) {
|
||||
@@ -389,5 +390,5 @@ func vendorSkuList2Jx(vendorSkuList []*ebaiapi.SkuInfo) (skuNameList []*partner.
|
||||
}
|
||||
|
||||
func (p *PurchaseHandler) GetSensitiveWordRegexp() *regexp.Regexp {
|
||||
return regexp.MustCompile(`商品名称中含有敏感词(\[.*\])`)
|
||||
return sensitiveWordRegexp
|
||||
}
|
||||
Reference in New Issue
Block a user