This commit is contained in:
邹宗楠
2024-01-29 18:42:10 +08:00
parent fcc0a3fcd4
commit 6ca1ac444e

View File

@@ -154,11 +154,13 @@ func BatchInitSkuEBai2EBai(ctx *jxcontext.Context, fromSku []*ebaiapi.SkuInfo, t
func CopyMtToMT(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail, isAsync bool, offSet int) (hint string, err error) {
fromAPI := partner.CurAPIManager.GetAPI(model.VendorIDMTWM, fromStore.VendorOrgCode).(*mtwmapi.API)
if fromStore.VendorOrgCode == "5873" {
globals.SugarLogger.Debugf("=====token1 := %s", fromStore.MtwmToken)
fromAPI.SetToken(fromStore.MtwmToken)
}
toAPI := partner.CurAPIManager.GetAPI(model.VendorIDMTWM, toStore.VendorOrgCode).(*mtwmapi.API)
if toStore.VendorOrgCode == "5873" {
globals.SugarLogger.Debugf("=====token2 := %s", fromStore.MtwmToken)
toAPI.SetToken(toStore.MtwmToken)
}