1
This commit is contained in:
@@ -94,9 +94,9 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
|
||||
|
||||
for _, fn := range mtwmComment.CommentOrderDetail {
|
||||
if len(fn.FoodName)-strings.LastIndex(fn.FoodName, ")") > 3 {
|
||||
foodNameList[fn.FoodName] = 1
|
||||
foodNameList[strings.TrimSpace(fn.FoodName)] = 1
|
||||
} else {
|
||||
foodNameList[fn.FoodName[0:strings.LastIndex(fn.FoodName, "(")]] = 1
|
||||
foodNameList[strings.TrimSpace(fn.FoodName[0:strings.LastIndex(fn.FoodName, "(")])] = 1
|
||||
}
|
||||
}
|
||||
nameList := make([]string, 0, 0)
|
||||
|
||||
Reference in New Issue
Block a user