From c957139040f7cbc60875ed596df1b087793e15fd Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 19 Aug 2021 11:29:57 +0800 Subject: [PATCH] aa --- business/partner/purchase/ebai/order_comment.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/business/partner/purchase/ebai/order_comment.go b/business/partner/purchase/ebai/order_comment.go index 1549f7b23..cb56db190 100644 --- a/business/partner/purchase/ebai/order_comment.go +++ b/business/partner/purchase/ebai/order_comment.go @@ -51,7 +51,7 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error) for _, v := range storeIDs { if commentList, err := api.EbaiAPI.OrderCommetGet(utils.Int2Str(v), 0, fromTime, toTime, 0); err == nil { for _, comment := range commentList { - if comment.OrderID != 0 && comment.AnonymousRating == "0" && comment.CanReply == "1" { + if comment.CanReply == "1" { orderComment := &model.OrderComment{ VendorOrderID: utils.Int64ToStr(comment.OrderID), VendorID: model.VendorIDEBAI, @@ -64,6 +64,9 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error) ModifyDuration: EBAI_BAD_COMMENTS_MAX_MODIFY_TIME, OriginalMsg: string(utils.MustMarshal(comment)), } + if orderComment.VendorOrderID == "" { + orderComment.VendorOrderID = orderComment.UserCommentID + } // 直接得到的订单是饿了么的,尝试统一成饿百 if order, err := partner.CurOrderManager.LoadOrder(orderComment.VendorOrderID, model.VendorIDEBAI); err == nil { orderComment.VendorOrderID = order.VendorOrderID