【类 型】:style
【主 题】:注释 提示信息 【描 述】: [原因]: [过程]: [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
6ed581436a
commit
bfadaeeb6e
@ -164,7 +164,7 @@ class PlaneController extends PublicController
|
|||||||
//总管理员 可接收任何shop_id 非总管理员 只可以调用自身shop_id 否则会中断
|
//总管理员 可接收任何shop_id 非总管理员 只可以调用自身shop_id 否则会中断
|
||||||
$this->isPower();
|
$this->isPower();
|
||||||
|
|
||||||
if ($_REQUEST['id'] && $_REQUEST['runing']) {
|
if ($_REQUEST['id'] && $_REQUEST['shop_id'] && $_REQUEST['runing']) {
|
||||||
$rsDb = D('receive_site');
|
$rsDb = D('receive_site');
|
||||||
$where['id'] = $_REQUEST['id'];
|
$where['id'] = $_REQUEST['id'];
|
||||||
$where['shop_id'] = $_REQUEST['shop_id'];
|
$where['shop_id'] = $_REQUEST['shop_id'];
|
||||||
@ -178,16 +178,11 @@ class PlaneController extends PublicController
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//注册航线
|
|
||||||
if ($_REQUEST['runing'] == "null") {
|
|
||||||
$data['runing'] = null;
|
|
||||||
$msg = "已注销执行航线";
|
|
||||||
} else {
|
|
||||||
$data['runing'] = $_REQUEST['runing'];
|
|
||||||
$msg = "已注册执行航线";
|
$msg = "已注册执行航线";
|
||||||
|
} else {
|
||||||
|
$msg = "已注销执行航线";
|
||||||
}
|
}
|
||||||
|
$data['runing'] = $_REQUEST['runing'];
|
||||||
|
|
||||||
if ($rsDb->where($where)->save($data)) {
|
if ($rsDb->where($where)->save($data)) {
|
||||||
echo json_encode(array('status' => 1, 'msg' => $msg));
|
echo json_encode(array('status' => 1, 'msg' => $msg));
|
||||||
|
Loading…
Reference in New Issue
Block a user