This commit is contained in:
苏尹岚
2021-04-12 10:34:31 +08:00
parent 47bc850dca
commit 6cdc6038da

View File

@@ -238,8 +238,9 @@ func getAPI(appOrgCode string, storeID int, vendorStoreID string) (apiObj *mtwma
} else if vendorStoreID != "" {
storeDetail, _ = dao.GetStoreDetailByVendorStoreID(dao.GetDB(), vendorStoreID, model.VendorIDMTWM, appOrgCode)
}
globals.SugarLogger.Debugf("getAPI storeID :%v , vendorStoreID : %v", storeID, vendorStoreID)
apiObj.SetToken(storeDetail.MtwmToken)
if storeDetail != nil {
apiObj.SetToken(storeDetail.MtwmToken)
}
}
return apiObj
}