Browse Source

2023-5-22-1 新增服务区-2

yingzi 2 năm trước cách đây
mục cha
commit
ff379943b9
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      app/api/controller/User.php

+ 3 - 0
app/api/controller/User.php

@@ -125,6 +125,8 @@ class User extends BaseController
     public function getInviterRanking(Request $request){
         $time = $request->param('time', time());
         $times = explode(" - ",$time);
+//        $page = $request->param('page', 1);
+//        $pageSize = $request->param('pageSize', 6);
         if(sizeof($times)==2)
         {
             $count = (new UserModel) -> where('parent_uid', $request->user['uid'])->where('regtime','>=',$times[0])->where('regtime','<',$times[1])->count();
@@ -154,6 +156,7 @@ class User extends BaseController
                 -> group('parent_uid')
                 -> field('parent_uid AS uid, COUNT(*) AS count')
                 -> order('count', 'DESC')
+//                -> page($page, $pageSize)
                 -> select()
                 -> toArray();
             foreach ($list as &$v) {