|  | @@ -240,9 +240,9 @@ class Index extends Api
 | 
	
		
			
				|  |  |          $where = [];
 | 
	
		
			
				|  |  |          $where["a.createtime"] = ["gt",$timeArr[$time]];
 | 
	
		
			
				|  |  |          $list = model('GiftUserParty')->alias("a")
 | 
	
		
			
				|  |  | -            ->field("sum(a.value) as total_price,a.user_id,u.avatar,u.nickname")
 | 
	
		
			
				|  |  | +            ->field("sum(a.value) as total_price,a.user_to_id,u.avatar,u.nickname")
 | 
	
		
			
				|  |  |              ->where($where)
 | 
	
		
			
				|  |  | -            ->join("hx_user u","u.id = a.user_id")
 | 
	
		
			
				|  |  | +            ->join("hx_user u","u.id = a.user_to_id")
 | 
	
		
			
				|  |  |              ->group("a.user_to_id")
 | 
	
		
			
				|  |  |              ->order("total_price","desc")
 | 
	
		
			
				|  |  |              ->limit(100)
 |