diff --git a/FlyCube/MpApi/Controller/PlaneController.class.php b/FlyCube/MpApi/Controller/PlaneController.class.php index 4976c18..93fc145 100644 --- a/FlyCube/MpApi/Controller/PlaneController.class.php +++ b/FlyCube/MpApi/Controller/PlaneController.class.php @@ -200,8 +200,8 @@ class PlaneController extends PublicController } } - // 如果没有重复的航线,则更新数据库 - $data['runing'] = empty($submittedRuningArray) ? null : implode(',', $submittedRuningArray); + // 如果 $_REQUEST['runing'] 为空字符串 或者null,将其设置为 null + $data['runing'] = $_REQUEST['runing'] == null || $_REQUEST['runing'] = '' ? '' : $_REQUEST['runing']; if ($rsDb->where($where)->save($data)) { exit(json_encode(array('status' => 1, 'msg' => '站点航线执行操作成功!'))); } else {