This commit is contained in:
gazebo
2019-03-13 09:02:08 +08:00
parent ccd6c7d13d
commit 6a9067f643

View File

@@ -71,7 +71,7 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
db := dao.GetDB()
for _, orderComment := range orderCommentList {
globals.SugarLogger.Debugf("OnOrderComments, orderID:%s", orderComment.VendorOrderID)
comment2 := &legacymodel.JxBadComments{
comment2 := &legacymodel.JxBadComments2{
OrderId: orderComment.VendorOrderID,
}
err = dao.GetEntity(db, comment2, "OrderId")
@@ -102,6 +102,9 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
order, err2 := partner.CurOrderManager.LoadOrder(orderComment.VendorOrderID, orderComment.VendorID)
if err = err2; err == nil {
orderComment.StoreID = jxutils.GetSaleStoreIDFromOrder(order)
if orderComment.StoreID > 0 {
comment2.Jxstoreid = utils.Int2Str(orderComment.StoreID)
}
comment2.Userphone = order.ConsigneeMobile
if orderComment.StoreID > 0 && orderComment.Score <= JX_BAD_COMMENTS_MAX_LEVEL {
if globals.ReallyCallPlatformAPI {