- fix bug because the result of GetEleCommentList, shop_id is elm id not ebai id. in ebai.RefreshComment
This commit is contained in:
@@ -52,10 +52,10 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
|
|||||||
if err = err2; err == nil {
|
if err = err2; err == nil {
|
||||||
for _, result := range resultList {
|
for _, result := range resultList {
|
||||||
orderComment := &model.OrderComment{
|
orderComment := &model.OrderComment{
|
||||||
VendorOrderID: utils.Interface2String(result["order_id"]),
|
VendorOrderID: utils.Interface2String(result["order_id"]),
|
||||||
VendorID: model.VendorIDELM,
|
VendorID: model.VendorIDELM,
|
||||||
UserCommentID: utils.Int64ToStr(utils.MustInterface2Int64(result["comment_id"])),
|
UserCommentID: utils.Int64ToStr(utils.MustInterface2Int64(result["comment_id"])),
|
||||||
VendorStoreID: utils.Int64ToStr(utils.MustInterface2Int64(result["shop_id"])),
|
// VendorStoreID: utils.Int64ToStr(utils.MustInterface2Int64(result["shop_id"])), // 这个shop_id是饿了么ID,不是饿百ID
|
||||||
TagList: "",
|
TagList: "",
|
||||||
Score: int8(utils.MustInterface2Int64(result["service_rating"])),
|
Score: int8(utils.MustInterface2Int64(result["service_rating"])),
|
||||||
Content: utils.Interface2String(result["content"]),
|
Content: utils.Interface2String(result["content"]),
|
||||||
@@ -70,6 +70,7 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
|
|||||||
orderComment.VendorOrderID2 = order.VendorOrderID2
|
orderComment.VendorOrderID2 = order.VendorOrderID2
|
||||||
orderComment.VendorID = model.VendorIDEBAI
|
orderComment.VendorID = model.VendorIDEBAI
|
||||||
|
|
||||||
|
orderComment.VendorStoreID = order.VendorStoreID
|
||||||
orderComment.StoreID = jxutils.GetSaleStoreIDFromOrder(order)
|
orderComment.StoreID = jxutils.GetSaleStoreIDFromOrder(order)
|
||||||
orderComment.ConsigneeMobile = order.ConsigneeMobile
|
orderComment.ConsigneeMobile = order.ConsigneeMobile
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user