diff --git a/FlyCube/MpApi/Controller/PlaneController.class.php b/FlyCube/MpApi/Controller/PlaneController.class.php index a52eca7..c0b409c 100644 --- a/FlyCube/MpApi/Controller/PlaneController.class.php +++ b/FlyCube/MpApi/Controller/PlaneController.class.php @@ -268,14 +268,14 @@ class PlaneController extends PublicController //检查当前站点是否有飞机正在执行任务 有则打断 不进行更新 $field = array('runing'); $tempCheck = $rsDb->where($where)->field($field)->find(); - if (!empty($tempCheck['runing'])) { + if (!($_REQUEST['isCoerce'])) { // 将 runing 字段的字符串按逗号分割成数组 $runingArray = explode(',', $tempCheck['runing']); // 去除空元素和空格 $runingArray = array_map('trim', array_filter($runingArray)); // 检查数组是否有值 if (!empty($runingArray)) { - exit(json_encode(array('status' => 0, 'msg' => '此站点有飞机正在执行任务。待任务结束后再试!'))); + exit(json_encode(array('status' => -2, 'msg' => '此站点可能有飞机正在执行任务。请确认是否安全!'))); } } // 更新站点