From 8dcaa56ba0084d7530802173f8a0d03b7b602cee Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 23 Aug 2021 09:58:52 +0800 Subject: [PATCH] aa --- business/partner/purchase/jd/order_comment.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/business/partner/purchase/jd/order_comment.go b/business/partner/purchase/jd/order_comment.go index 4252d3e26..d521ceacb 100644 --- a/business/partner/purchase/jd/order_comment.go +++ b/business/partner/purchase/jd/order_comment.go @@ -30,6 +30,12 @@ func (c *PurchaseHandler) onOrderComment2(a *jdapi.API, msg *jdapi.CallbackOrder ModifyDuration: JDDJ_BAD_COMMENTS_MAX_MODIFY_TIME, OriginalMsg: string(utils.MustMarshal(result)), } + if orderCommend.Score == 0 { + orderCommend.Score = 1 + } + if orderCommend.TagList == "null" { + orderCommend.TagList = "" + } if result.CreateTime != nil { orderCommend.CommentCreatedAt = result.CreateTime.GoTime() }