敏感词过滤
This commit is contained in:
@@ -3,7 +3,7 @@ package partner
|
||||
import (
|
||||
"math"
|
||||
"time"
|
||||
|
||||
"regexp"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
||||
@@ -137,6 +137,8 @@ type ISingleStoreStoreSkuHandler interface {
|
||||
|
||||
IsErrCategoryExist(err error) (isExist bool)
|
||||
IsErrCategoryNotExist(err error) (isNotExist bool)
|
||||
|
||||
GetRegexp() *regexp.Regexp
|
||||
}
|
||||
|
||||
func BuildSkuName(skuID int, vendorSkuID string) (skuName *SkuNameInfo) {
|
||||
|
||||
@@ -2,7 +2,7 @@ package ebai
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"regexp"
|
||||
"git.rosy.net.cn/baseapi/platformapi/ebaiapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
@@ -387,3 +387,7 @@ func vendorSkuList2Jx(vendorSkuList []*ebaiapi.SkuInfo) (skuNameList []*partner.
|
||||
}
|
||||
return skuNameList
|
||||
}
|
||||
|
||||
func (p *PurchaseHandler) GetRegexp() *regexp.Regexp {
|
||||
return regexp.MustCompile(`商品名称中含有敏感词(\[.*\])`)
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package mtwm
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
@@ -365,3 +366,7 @@ func vendorSkuList2Jx(appFoodList []*mtwmapi.AppFood) (skuNameList []*partner.Sk
|
||||
}
|
||||
return skuNameList
|
||||
}
|
||||
|
||||
func (p *PurchaseHandler) GetRegexp() *regexp.Regexp {
|
||||
return regexp.MustCompile(`包含敏感词:(\[.*\])`)
|
||||
}
|
||||
Reference in New Issue
Block a user