修改敏感词过滤代码结构
This commit is contained in:
@@ -138,7 +138,7 @@ type ISingleStoreStoreSkuHandler interface {
|
||||
IsErrCategoryExist(err error) (isExist bool)
|
||||
IsErrCategoryNotExist(err error) (isNotExist bool)
|
||||
|
||||
GetRegexp() *regexp.Regexp
|
||||
GetSensitiveWordRegexp() *regexp.Regexp
|
||||
}
|
||||
|
||||
func BuildSkuName(skuID int, vendorSkuID string) (skuName *SkuNameInfo) {
|
||||
|
||||
@@ -388,6 +388,6 @@ func vendorSkuList2Jx(vendorSkuList []*ebaiapi.SkuInfo) (skuNameList []*partner.
|
||||
return skuNameList
|
||||
}
|
||||
|
||||
func (p *PurchaseHandler) GetRegexp() *regexp.Regexp {
|
||||
func (p *PurchaseHandler) GetSensitiveWordRegexp() *regexp.Regexp {
|
||||
return regexp.MustCompile(`商品名称中含有敏感词(\[.*\])`)
|
||||
}
|
||||
@@ -367,6 +367,6 @@ func vendorSkuList2Jx(appFoodList []*mtwmapi.AppFood) (skuNameList []*partner.Sk
|
||||
return skuNameList
|
||||
}
|
||||
|
||||
func (p *PurchaseHandler) GetRegexp() *regexp.Regexp {
|
||||
func (p *PurchaseHandler) GetSensitiveWordRegexp() *regexp.Regexp {
|
||||
return regexp.MustCompile(`包含敏感词:(\[.*\])`)
|
||||
}
|
||||
Reference in New Issue
Block a user