aa
This commit is contained in:
@@ -1203,8 +1203,8 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//美团商超获取token
|
//美团商超获取token
|
||||||
mtapi := apimanager.CurAPIManager.GetAPI(model.VendorIDMTWM, outStoreMap.VendorOrgCode).(*mtwmapi.API)
|
mtapi := apimanager.CurAPIManager.GetAPI(model.VendorIDMTWM, storeMap.VendorOrgCode).(*mtwmapi.API)
|
||||||
if token, err := mtapi.GetAccessToken2(outStoreMap.VendorStoreID); err == nil && token != nil {
|
if token, err := mtapi.GetAccessToken2(storeMap.VendorStoreID); err == nil && token != nil {
|
||||||
storeMap.MtwmToken = token.AccessToken
|
storeMap.MtwmToken = token.AccessToken
|
||||||
storeMap.MtwmToken = token.RefreshToken
|
storeMap.MtwmToken = token.RefreshToken
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user