浏览代码

各种列表

lizhen_gitee 6 月之前
父节点
当前提交
b8ac1921eb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/api/controller/Index.php

+ 2 - 2
application/api/controller/Index.php

@@ -27,7 +27,7 @@ class Index extends Api
 //            ->whereRaw("((start_time = 0 and end_time = 0) or (start_time < {$now} and end_time > {$now}))")
             ->whereRaw("((end_time = 0) or (end_time > {$now}))")
 //            ->where('find_in_set(:user_ids,user_ids)', ['user_ids' => $this->auth->id])
-            ->limit(2)
+            ->limit(3)
             ->order('start_time desc')
             ->select();
 
@@ -60,7 +60,7 @@ class Index extends Api
             ->where('deletetime', NULL)
             ->whereRaw("((endtime = 0) or (endtime > {$now}))")
             //->where("(userauth_status = 1) or (find_in_set('".$this->auth->id."',user_ids) )")
-            ->limit(2)
+            ->limit(3)
             ->order('starttime desc')
             ->select();