修改SetMTPSStatus调用

This commit is contained in:
平凡梦
2020-07-09 14:22:35 +08:00
parent 809612bd1d
commit adfee67070
2 changed files with 3 additions and 1 deletions

View File

@@ -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