diff --git a/business/partner/purchase/jd/order_comment.go b/business/partner/purchase/jd/order_comment.go index ab77a1e2f..4252d3e26 100644 --- a/business/partner/purchase/jd/order_comment.go +++ b/business/partner/purchase/jd/order_comment.go @@ -3,6 +3,7 @@ package jd import ( "git.rosy.net.cn/baseapi/platformapi/jdapi" "git.rosy.net.cn/baseapi/utils" + "git.rosy.net.cn/jx-callback/business/jxutils" "git.rosy.net.cn/jx-callback/business/jxutils/jxcontext" "git.rosy.net.cn/jx-callback/business/model" "git.rosy.net.cn/jx-callback/business/partner" @@ -35,6 +36,9 @@ func (c *PurchaseHandler) onOrderComment2(a *jdapi.API, msg *jdapi.CallbackOrder if result.OrgCommentContent != "" { orderCommend.IsReplied = 1 } + if order, _ := partner.CurOrderManager.LoadOrder(orderCommend.VendorOrderID, model.VendorIDJD); order != nil { + orderCommend.StoreID = jxutils.GetSaleStoreIDFromOrder(order) + } err = partner.CurOrderManager.OnOrderComments([]*model.OrderComment{orderCommend}) } if err != nil { diff --git a/business/partner/purchase/mtwm/mtwm.go b/business/partner/purchase/mtwm/mtwm.go index 56d7702b9..766762498 100644 --- a/business/partner/purchase/mtwm/mtwm.go +++ b/business/partner/purchase/mtwm/mtwm.go @@ -228,7 +228,7 @@ func (p *PurchaseHandler) getUploadImgPoiCode() (poiCode string) { func getAPI(appOrgCode string, storeID int, vendorStoreID string) (apiObj *mtwmapi.API) { if appOrgCode == "" { - globals.SugarLogger.Warnf("getAPI appOrgCode is empty") + globals.SugarLogger.Debugf("getAPI appOrgCode is empty") } apiObj = partner.CurAPIManager.GetAPI(model.VendorIDMTWM, appOrgCode).(*mtwmapi.API) if appOrgCode == globals.Mtwm2Code { diff --git a/business/partner/purchase/mtwm/order_comment.go b/business/partner/purchase/mtwm/order_comment.go index b719fb843..f4caf880e 100644 --- a/business/partner/purchase/mtwm/order_comment.go +++ b/business/partner/purchase/mtwm/order_comment.go @@ -71,6 +71,7 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error) ModifyDuration: BAD_COMMENTS_MAX_MODIFY_TIME, OriginalMsg: string(utils.MustMarshal(mtwmComment)), IsReplied: int8(mtwmComment.ReplyStatus), + StoreID: storeMap.StoreID, } if orderComment.IsReplied == 0 { orderComment.Content = mtwmComment.CommentContent