diff --git a/FlyCube/MpApi/Controller/PlaneController.class.php b/FlyCube/MpApi/Controller/PlaneController.class.php index 038c89d..aa3fb6f 100644 --- a/FlyCube/MpApi/Controller/PlaneController.class.php +++ b/FlyCube/MpApi/Controller/PlaneController.class.php @@ -607,7 +607,7 @@ class PlaneController extends PublicController $data['refund_status'] = htmlspecialchars($_REQUEST['refund_status']); } if ($_REQUEST['by_plane_id']) { - $data['by_plane_id'] = intval($_REQUEST['by_plane_id']); + $data['by_plane_id'] = ($_REQUEST['by_plane_id'] === 'null') ? null : intval($_REQUEST['by_plane_id']); } if ($orderDb->where($where)->save($data)) { //修改数据 $topicPrefix = makeTopicPrefix($order['openid']); //小程序端用户订阅主题的前缀 ps:订单对应的用户的openid算出来的