修改SetMTPSStatus调用
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user