Browse Source

匹配多给一些用户

lizhen_gitee 3 years ago
parent
commit
152c010124

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

@@ -400,7 +400,7 @@ class Usercenter extends Api
         //$map = [];
 
         $lists = Db::name('user')->field('id,cityname,status,gender,real_status,tag_ids')->where($map)->order('logintime desc')->page($this->page,100)->select();
-        $lists = $this->fliter_user($lists);
+        $lists = $this->fliter_user($lists,10);
 
         $result = [];
         if(!empty($lists)){
@@ -458,7 +458,7 @@ class Usercenter extends Api
 //        $map = [];
 
         $lists = Db::name('user')->field('id,cityname,status,gender,real_status,tag_ids')->where($map)->order('logintime desc')->page($this->page,100)->select();
-        $lists = $this->fliter_user($lists);
+        $lists = $this->fliter_user($lists,10);
 
         $result = [];
         if(!empty($lists)){

+ 1 - 1
application/index/controller/Index.php

@@ -16,7 +16,7 @@ class Index extends Frontend
         foreach($list as $key => $id){
             $a = redis_matching_set($id,0);
         }
-
+        exit;
     }