This commit is contained in:
苏尹岚
2021-03-10 16:44:05 +08:00
parent f52c1ad837
commit 8859a41bdf
3 changed files with 35 additions and 8 deletions

View File

@@ -1206,7 +1206,7 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
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
storeMap.MtwmRefreshToken = token.RefreshToken
}
}
storeMap.SyncStatus = model.SyncFlagModifiedMask | model.SyncFlagStoreName | model.SyncFlagStoreAddress // 新增绑定门店是修改的概念