diff --git a/FlyCube/MpApi/Controller/PlaneController.class.php b/FlyCube/MpApi/Controller/PlaneController.class.php index 43e9615..8595af4 100644 --- a/FlyCube/MpApi/Controller/PlaneController.class.php +++ b/FlyCube/MpApi/Controller/PlaneController.class.php @@ -606,7 +606,9 @@ class PlaneController extends PublicController if ($_REQUEST['refund_status']) { $data['refund_status'] = htmlspecialchars($_REQUEST['refund_status']); } - $data['by_plane_id'] = ($_REQUEST['by_plane_id'] == '') ? null : intval($_REQUEST['by_plane_id']); //有值写入 没值设null + if ($_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算出来的 // 提醒小程序端 刷新订单列表(mqtt)