|  | @@ -116,11 +116,14 @@ class ReadRecordController extends BaseController
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        usort($res, function ($a, $b) {
 | 
	
		
			
				|  |  | -            if ($a['time'] >= $b['time']) return -1;
 | 
	
		
			
				|  |  | -            return 1;
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -        return response()->collection(new ReadRecordTransformer(), array_to_object($res));
 | 
	
		
			
				|  |  | +        if($res){
 | 
	
		
			
				|  |  | +            usort($res, function ($a, $b) {
 | 
	
		
			
				|  |  | +                if ($a['time'] >= $b['time']) return -1;
 | 
	
		
			
				|  |  | +                return 1;
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            return response()->collection(new ReadRecordTransformer(), array_to_object($res));
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return response();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 |