This commit is contained in:
邹宗楠
2025-01-24 18:08:04 +08:00
parent 486985de86
commit a3225eecaf

View File

@@ -74,7 +74,18 @@ func GetPoiIMStatus(param []GetPoiIMStatusReq) (retVal []*GetPoiIMStatusResp) {
for _, v := range param {
switch v.VendorID {
case model.VendorIDMTWM:
temp, err := partner.CurAPIManager.GetAPI(model.VendorIDMTWM, v.VendorOrgCode).(*mtwmapi.API).GetPoiIMStatus(v.VendorStoreID)
api := partner.CurAPIManager.GetAPI(model.VendorIDMTWM, v.VendorOrgCode).(*mtwmapi.API)
switch v.VendorOrgCode {
case "5873":
storeDetail, err := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), v.VendorStoreID, model.VendorIDMTWM, v.VendorOrgCode)
if err != nil || storeDetail == nil {
return nil
}
api.SetToken(storeDetail.MtwmToken)
default:
}
temp, err := api.GetPoiIMStatus(v.VendorStoreID)
if err != nil {
ans1.ErrMsg = fmt.Sprintf("1:%v", err)
continue