1
This commit is contained in:
@@ -227,12 +227,11 @@ func CommentListData(db *dao.DaoDB, skuList []*mtwmapi.CommentsList, startTime,
|
||||
// 包含()中文括号的商品
|
||||
for _, fn := range mtwmComment.OrderStatus.Details {
|
||||
if len(fn.FoodName)-strings.LastIndex(fn.FoodName, ")") > 3 {
|
||||
foodNameList[fn.FoodName] = 1
|
||||
foodNameList[strings.TrimSuffix(fn.FoodName, " ")] = 1
|
||||
} else {
|
||||
foodNameList[fn.FoodName[0:strings.LastIndex(fn.FoodName, "(")]] = 1
|
||||
foodNameList[strings.TrimSuffix(fn.FoodName[0:strings.LastIndex(fn.FoodName, "(")], " ")] = 1
|
||||
}
|
||||
}
|
||||
|
||||
store, err := dao.GetStoreDetailByVendorStoreID(db, orderComment.VendorStoreID, orderComment.VendorID, "")
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("获取美团外卖差评列表,失败:%s,%v", orderComment.VendorStoreID, err)
|
||||
|
||||
Reference in New Issue
Block a user