- fix bug because the result of GetEleCommentList, shop_id is elm id not ebai id. in ebai.RefreshComment

This commit is contained in:
gazebo
2019-03-15 11:54:02 +08:00
parent b9da868736
commit 3e7af36e8e

View File

@@ -52,10 +52,10 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
if err = err2; err == nil {
for _, result := range resultList {
orderComment := &model.OrderComment{
VendorOrderID: utils.Interface2String(result["order_id"]),
VendorID: model.VendorIDELM,
UserCommentID: utils.Int64ToStr(utils.MustInterface2Int64(result["comment_id"])),
VendorStoreID: utils.Int64ToStr(utils.MustInterface2Int64(result["shop_id"])),
VendorOrderID: utils.Interface2String(result["order_id"]),
VendorID: model.VendorIDELM,
UserCommentID: utils.Int64ToStr(utils.MustInterface2Int64(result["comment_id"])),
// VendorStoreID: utils.Int64ToStr(utils.MustInterface2Int64(result["shop_id"])), // 这个shop_id是饿了么ID不是饿百ID
TagList: "",
Score: int8(utils.MustInterface2Int64(result["service_rating"])),
Content: utils.Interface2String(result["content"]),
@@ -70,6 +70,7 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
orderComment.VendorOrderID2 = order.VendorOrderID2
orderComment.VendorID = model.VendorIDEBAI
orderComment.VendorStoreID = order.VendorStoreID
orderComment.StoreID = jxutils.GetSaleStoreIDFromOrder(order)
orderComment.ConsigneeMobile = order.ConsigneeMobile
} else {