diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 8d4f0061e..2c4c55bf9 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1517,6 +1517,8 @@ func GetStoreCourierMaps(ctx *jxcontext.Context, db *dao.DaoDB, storeID int, ven continue } else { SetMTPSStatus(jxcontext.AdminCtx, v.StoreID, v.Status) + storeCourierMaps = nil + err = dao.GetEntitiesByKV(db, &storeCourierMaps, cond, false) break } } diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 083d3ab91..8e20e6751 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -1288,7 +1288,7 @@ func SetMTPSStatus(ctx *jxcontext.Context, StoreId, CourierStatus int) { StoreLists, _ := dao.GetStoreList(nil, []int{StoreId}, nil, nil, nil, "") StoreInfoList, _ := api.MtpsAPI.GetStoreStatus(StoreLists[0].Name) globals.SugarLogger.Debug("美团查询结果", StoreInfoList) - if StoreInfoList == nil && StoreInfoList.DataList == nil { + if StoreInfoList == nil || StoreInfoList.DataList == nil { sl := make(map[string]interface{}) sl["vendorStoreID"] = model.VendorIDMTPS sl["status"] = 0