From 4203dd5b29fb4f927a10667fb2af3c536e353cff Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 9 Oct 2018 15:03:31 +0800 Subject: [PATCH] - use orgCommentContent to decide whether reply in onOrderComment. --- business/partner/purchase/jd/order_legacy_comment.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/partner/purchase/jd/order_legacy_comment.go b/business/partner/purchase/jd/order_legacy_comment.go index bc36a142d..f3db6e23a 100644 --- a/business/partner/purchase/jd/order_legacy_comment.go +++ b/business/partner/purchase/jd/order_legacy_comment.go @@ -85,7 +85,9 @@ func (c *PurchaseHandler) onOrderComment(msg *jdapi.CallbackOrderMsg) (err error isNewComment := false if err == orm.ErrNoRows { isNewComment = true - c.replyOrderComment(intOrderID, utils.Int64ToStr(utils.MustInterface2Int64(result["storeId"])), score) + if result["orgCommentContent"] == nil { + c.replyOrderComment(intOrderID, utils.Int64ToStr(utils.MustInterface2Int64(result["storeId"])), score) + } } if score <= JX_BAD_COMMENTS_MAX_LEVEL || !isNewComment { // 如果是直接非差评,忽略 comment.Createtime = utils.Timestamp2Str(utils.MustInterface2Int64(result["createTime"].(map[string]interface{})["time"]) / 1000)