diff --git a/app/controller/api/user/Zhibo.php b/app/controller/api/user/Zhibo.php index 836b2df5..14179d3a 100644 --- a/app/controller/api/user/Zhibo.php +++ b/app/controller/api/user/Zhibo.php @@ -35,7 +35,7 @@ class Zhibo extends BaseController { $params = $this->request->params(['live_stream_id', 'gift_id', 'master_id']); $user = $this->request->userInfo(); - if (empty($params['live_stream_id']) || empty($params['master_id']) || empty($params['gift_id'])) { + if (empty($params['live_stream_id']) || empty($params['master_id']) || empty($params['gift_id']) || empty($params['live_name']) || empty($params['gift_name']) || empty($params['amount'])) { return app('json')->fail('live_stream_id, master_id, gift_id, live_name, gift_name, amount 参数不能为空'); } if ($params['amount'] > $user['now_money']) {