敏感词过滤

This commit is contained in:
Rosy-zhudan
2019-08-16 14:26:22 +08:00
parent 634ac5ebe6
commit 4636ea7fd5
8 changed files with 90 additions and 4 deletions

View File

@@ -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(`包含敏感词:(\[.*\])`)
}