更新直播送礼
This commit is contained in:
parent
65f4469139
commit
41c065d0ed
@ -35,7 +35,7 @@ class Zhibo extends BaseController
|
|||||||
{
|
{
|
||||||
$params = $this->request->params(['live_stream_id', 'gift_id', 'master_id']);
|
$params = $this->request->params(['live_stream_id', 'gift_id', 'master_id']);
|
||||||
$user = $this->request->userInfo();
|
$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 参数不能为空');
|
return app('json')->fail('live_stream_id, master_id, gift_id, live_name, gift_name, amount 参数不能为空');
|
||||||
}
|
}
|
||||||
if ($params['amount'] > $user['now_money']) {
|
if ($params['amount'] > $user['now_money']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user