diff --git a/FlyCube/MpApi/Controller/PlaneController.class.php b/FlyCube/MpApi/Controller/PlaneController.class.php index baf2b5a..8a4b4cb 100644 --- a/FlyCube/MpApi/Controller/PlaneController.class.php +++ b/FlyCube/MpApi/Controller/PlaneController.class.php @@ -164,7 +164,7 @@ class PlaneController extends PublicController //总管理员 可接收任何shop_id 非总管理员 只可以调用自身shop_id 否则会中断 $this->isPower(); - if ($_REQUEST['id'] && $_REQUEST['runing']) { + if ($_REQUEST['id'] && $_REQUEST['shop_id'] && $_REQUEST['runing']) { $rsDb = D('receive_site'); $where['id'] = $_REQUEST['id']; $where['shop_id'] = $_REQUEST['shop_id']; @@ -178,16 +178,11 @@ class PlaneController extends PublicController exit; } } - } - - //注册航线 - if ($_REQUEST['runing'] == "null") { - $data['runing'] = null; - $msg = "已注销执行航线"; - } else { - $data['runing'] = $_REQUEST['runing']; $msg = "已注册执行航线"; + } else { + $msg = "已注销执行航线"; } + $data['runing'] = $_REQUEST['runing']; if ($rsDb->where($where)->save($data)) { echo json_encode(array('status' => 1, 'msg' => $msg));