Browse Source

video

master
chuan 2 months ago
parent
commit
7919a3f9ad
  1. 5
      app/admin/service/VideoService.php
  2. 2
      app/home/service/UserService.php

5
app/admin/service/VideoService.php

@ -11,12 +11,15 @@ class VideoService extends AdminBaseService
if (empty($param['page']) || !is_numeric($param['page'])) { if (empty($param['page']) || !is_numeric($param['page'])) {
return $this->toData('1', '参错错误'); return $this->toData('1', '参错错误');
} }
if (empty($param['limit']) || !is_numeric($param['limit'])) {
return $this->toData('1', '参错错误');
}
$where = []; $where = [];
if (isset($param['title'])) { if (isset($param['title'])) {
$where['title'] = $param['title']; $where['title'] = $param['title'];
} }
$list = VideoOnDemandModel::where($where)->order('id', 'desc')->paginate([ $list = VideoOnDemandModel::where($where)->order('id', 'desc')->paginate([
'list_rows' => 15, 'list_rows' => $param['limit'],
'page' => $param['page'], 'page' => $param['page'],
]); ]);
return $this->toData('0', 'SUCCESS', [ return $this->toData('0', 'SUCCESS', [

2
app/home/service/UserService.php

@ -193,6 +193,8 @@ class UserService extends BaseHomeService
$group_chat_uuid = $agentGroup->group_uuid; $group_chat_uuid = $agentGroup->group_uuid;
} }
// 检测用户是否充值过,充值过就标识为vip
// 返回数据 // 返回数据
return $this->toData('0', 'Modification successful.', [ return $this->toData('0', 'Modification successful.', [
'logo' => $headPath, 'logo' => $headPath,

Loading…
Cancel
Save