|  | @@ -39,10 +39,12 @@ class Address extends Base
 | 
	
		
			
				|  |  |      public function def_address()
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |          $row = AddressModel::where('user_id', $this->auth->id)->where('is_default', 1)->find();
 | 
	
		
			
				|  |  | -        if (!$row) {
 | 
	
		
			
				|  |  | -            $this->error('未找到记录');
 | 
	
		
			
				|  |  | +        $arrReturn = [];
 | 
	
		
			
				|  |  | +        if ($row) {
 | 
	
		
			
				|  |  | +            $arrReturn = $row->toArray();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        $this->success('获取成功', $row);
 | 
	
		
			
				|  |  | +       
 | 
	
		
			
				|  |  | +        $this->success('获取成功', $arrReturn);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      //添加(编辑)地址
 |