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