|  | @@ -169,6 +169,9 @@ class Guild extends Api
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      public function getGuildList() {
 | 
	
		
			
				|  |  |          $search = $this->request->request("search","","string"); //搜索的字段 公会名称/公会ID
 | 
	
		
			
				|  |  | +        $page = $this->request->request("page",1);
 | 
	
		
			
				|  |  | +        $pageNum = $this->request->request("pageNum",10);
 | 
	
		
			
				|  |  | +        $offset = ($page-1) * $pageNum;
 | 
	
		
			
				|  |  |          //if(!$search) $this->error("请输入要搜索的公会名称或公会ID");
 | 
	
		
			
				|  |  |          global $whereOr;
 | 
	
		
			
				|  |  |          $where = [];$whereOr = [];
 | 
	
	
		
			
				|  | @@ -183,6 +186,7 @@ class Guild extends Api
 | 
	
		
			
				|  |  |                  global $whereOr;
 | 
	
		
			
				|  |  |                  $query->whereOr($whereOr);
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  | +            ->limit($offset,$pageNum)
 | 
	
		
			
				|  |  |              ->select();
 | 
	
		
			
				|  |  |          $this->success("获取成功!",$res);
 | 
	
		
			
				|  |  |      }
 |