From bd0867c34632ae8c4efb2e2506076c4aafab775c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 18 Jul 2024 09:24:57 +0800 Subject: [PATCH] 1 --- business/partner/purchase/mtwm/order_comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/partner/purchase/mtwm/order_comment.go b/business/partner/purchase/mtwm/order_comment.go index d0b2032a5..c82c0f0cf 100644 --- a/business/partner/purchase/mtwm/order_comment.go +++ b/business/partner/purchase/mtwm/order_comment.go @@ -90,7 +90,7 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error) } if len(mtwmComment.CommentOrderDetail) > 0 { - foodNameList := make([]string, len(mtwmComment.CommentOrderDetail)) + foodNameList := make([]string, 0, len(mtwmComment.CommentOrderDetail)) for _, fn := range mtwmComment.CommentOrderDetail { if len(fn.FoodName)-strings.LastIndex(fn.FoodName, ")") > 3 { foodNameList = append(foodNameList, fn.FoodName)