美团外卖分类名不支持emoji表情了
This commit is contained in:
@@ -100,6 +100,8 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
|
||||
if catName == "" {
|
||||
panic("catName is empty")
|
||||
}
|
||||
catName = utils.FilterMb4(catName)
|
||||
subCatName = utils.FilterMb4(subCatName)
|
||||
globals.SugarLogger.Debugf("mtwm CreateStoreCategory vendorStoreID:%s, originName:%s, catName:%s, subCatName:%s, seq:%d", vendorStoreID, originName, catName, subCatName, storeCat.Seq)
|
||||
if !(originName == catName && subCatName == "") {
|
||||
if globals.EnableMtwmStoreWrite {
|
||||
@@ -112,7 +114,7 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
|
||||
}
|
||||
}
|
||||
if err == nil {
|
||||
storeCat.VendorCatID = storeCat.Name
|
||||
storeCat.VendorCatID = utils.FilterMb4(storeCat.Name)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user