diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 7b15ec0a2..38d46c642 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1203,8 +1203,8 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend } } else { //美团商超获取token - mtapi := apimanager.CurAPIManager.GetAPI(model.VendorIDMTWM, outStoreMap.VendorOrgCode).(*mtwmapi.API) - if token, err := mtapi.GetAccessToken2(outStoreMap.VendorStoreID); err == nil && token != nil { + mtapi := apimanager.CurAPIManager.GetAPI(model.VendorIDMTWM, storeMap.VendorOrgCode).(*mtwmapi.API) + if token, err := mtapi.GetAccessToken2(storeMap.VendorStoreID); err == nil && token != nil { storeMap.MtwmToken = token.AccessToken storeMap.MtwmToken = token.RefreshToken }