WIN-2308041133\Administrator 8 months ago
parent
commit
c135ef9120
1 changed files with 5 additions and 1 deletions
  1. 5 1
      application/api/controller/Platform.php

+ 5 - 1
application/api/controller/Platform.php

@@ -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);