diff --git a/business/partner/purchase/tiktok_store/waybill.go b/business/partner/purchase/tiktok_store/waybill.go index cf6193d21..395bb3114 100644 --- a/business/partner/purchase/tiktok_store/waybill.go +++ b/business/partner/purchase/tiktok_store/waybill.go @@ -39,6 +39,7 @@ func (c *PurchaseHandler) onWaybillMsg(tag, orderId string, data interface{}) *t map[string]interface{}{ "vendorOrderID": waybill.VendorOrderID, }, 0, 0); err == nil { + err := partner.CurOrderManager.OnWaybillStatusChanged(waybill) if err == nil && waybill.Status == model.WaybillStatusDelivering { c.postFakeMsg(waybill.VendorOrderID, FakeMsgType, utils.Int2Str(tiktok_api.ShipmentStatusDelivering), localOrder[0].VendorStoreID) @@ -50,7 +51,6 @@ func (c *PurchaseHandler) onWaybillMsg(tag, orderId string, data interface{}) *t func (c *PurchaseHandler) callbackMsg2Waybill(tag, orderId string, data interface{}) (retVal *model.Waybill) { req := data.(tiktok_api.ShipmentInfoData) - vendorOrgCode, _ := dao.GetStoreDetailForDD(dao.GetDB(), 0, model.VendorIDDD, utils.Int64ToStr(req.ShopID), "") return &model.Waybill{ VendorOrderID: utils.Int64ToStr(req.ShopOrderID), OrderVendorID: model.VendorIDDD, @@ -63,7 +63,7 @@ func (c *PurchaseHandler) callbackMsg2Waybill(tag, orderId string, data interfac StatusTime: utils.Str2Time(req.OccurredTime), //StatusTime: getTimeFromTimestamp(utils.Str2Int64(req.OccurredTime)), Remark: "", - VendorOrgCode: vendorOrgCode.VendorOrgCode, + VendorOrgCode: utils.Int64ToStr(req.ShopID), //为抖音账号ID } } diff --git a/globals/globals.go b/globals/globals.go index f7325f291..d8bdf7dc0 100644 --- a/globals/globals.go +++ b/globals/globals.go @@ -102,7 +102,7 @@ func Init() { SugarLogger.Infof("globals RunMode=%s", web.BConfig.RunMode) ReallyCallPlatformAPI = (web.BConfig.RunMode != "dev" && web.BConfig.RunMode != "test") - //ReallyCallPlatformAPI = true //本地测试用 + //ReallyCallPlatformAPI = true //本地测试用-ysq ReallySendWeixinMsg = ReallyCallPlatformAPI && IsProductEnv() AliKey = web.AppConfig.DefaultString("aliKey", "")