From a7f55412698ec224afe3c39b023ee133a0ce837d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B3=E5=87=A1=E6=A2=A6?= Date: Thu, 9 Jul 2020 13:54:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SetMTPSStatus=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 927ccd2b3..3ed71c1e5 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -1288,6 +1288,14 @@ 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 { + sl := make(map[string]interface{}) + sl["vendorStoreID"] = model.VendorIDMTPS + sl["status"] = 0 + sl["vendorStatus"] = 0 + globals.SugarLogger.Debug("因为没找到被修改配送状态的VendorStoreID是", StoreLists[0].Name) + return + } if StoreInfoList.DataList[0].OuterPoiID != "" { //若存在且名字不为空,就是找到了 if StoreInfoList.DataList[0].OpenType != CourierStatus {