|
|
@@ -45,12 +45,16 @@ class Platform extends Api
|
|
|
$map['video_share.uid'] = input('uid');
|
|
|
$count = $this->user_share_count($map['video_share.uid']);
|
|
|
}
|
|
|
+ list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
|
|
$config = $this->config();
|
|
|
$list = model('VideoShare')
|
|
|
->with('videolist,user')
|
|
|
->where($map)
|
|
|
- ->limit(10)
|
|
|
+ ->limit($offset, $limit)
|
|
|
->select();
|
|
|
+ $total = model('VideoShare')
|
|
|
+ ->where($map)
|
|
|
+ ->count();
|
|
|
// var_dump(model('VideoShare')->getLastSql());die();
|
|
|
$data = ['config' => $config, 'doctor' => $list,'count' => $count];
|
|
|
$this->success('请求成功', $data);
|