|  | @@ -297,12 +297,15 @@ class Eggnew extends Api
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      //手气榜单
 | 
	
		
			
				|  |  |      public function getRankList(){
 | 
	
		
			
				|  |  | +        $type = $this->request->request("type",1);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          $today = strtotime(date("Y-m-d"));
 | 
	
		
			
				|  |  |          $where = [];
 | 
	
		
			
				|  |  |          $where["a.createtime"] = ["gt",$today];
 | 
	
		
			
				|  |  | +        $where["a.type"] = $type;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          $ranklist = \app\common\model\EggDo::alias("a")->field("a.user_id,a.image,a.price as money,a.createtime,u.nickname")
 | 
	
		
			
				|  |  | -            ->join("hx_user u","u.id = a.user_id","inner")
 | 
	
		
			
				|  |  | +            ->join("hx_user u","u.id = a.user_id","left")
 | 
	
		
			
				|  |  |              ->where($where)
 | 
	
		
			
				|  |  |  //            ->group("a.user_id")
 | 
	
		
			
				|  |  |              ->order("money","desc")
 |