diff --git a/FlyCube/MpApi/Controller/PlaneController.class.php b/FlyCube/MpApi/Controller/PlaneController.class.php index 3b0857e..ee98966 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 ($_REQUEST['isCoerce'] != 1) { + if (!empty($tempCheck['runing'])) { // 将 runing 字段的字符串按逗号分割成数组 $runingArray = explode(',', $tempCheck['runing']); // 去除空元素和空格 $runingArray = array_map('trim', array_filter($runingArray)); // 检查数组是否有值 if (!empty($runingArray)) { - exit(json_encode(array('status' => -1, 'msg' => '此站点可能有飞机正在执行任务。请确认是否安全!'))); + exit(json_encode(array('status' => -1, 'msg' => '此站点有飞机正在执行任务。待任务结束后再试!'))); } } // 更新站点