| 
					
				 | 
			
			
				@@ -87,30 +87,46 @@ class Address  extends Base 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $county = Dever::input('county');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $address = Dever::input('address');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $country = Dever::input('country');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $mobile = Dever::input('mobile');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $sex = Dever::input('sex');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $house_number = Dever::input('house_number');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $tag = Dever::input('tag');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return $this->upAddress($id, $uid, $type, $province, $city, $county, $address, $country, $sex, $house_number, $tag);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return $this->upAddress($id, $uid, $type, $mobile, $province, $city, $county, $address, $country, $sex, $house_number, $tag);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     # 添加或者更新地址
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public function upAddress($id, $uid, $type = 2, $province = '', $city = '', $county = '', $address = '', $country = '', $sex = '', $house_number = '', $tag = '')
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public function upAddress($id, $uid, $type = 2, $mobile, $province = '', $city = '', $county = '', $address = '', $country = '', $sex = '', $house_number = '', $tag = '')
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     	if ($country) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     		$update['country'] = $country;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     	}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($mobile) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $update['mobile'] = $mobile;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($province) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $update['province'] = $province;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($city) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $update['city'] = $city;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($county) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $update['county'] = $county;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if ($province && $city && $county && $address) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        	$update['province'] = $province;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	        $update['city'] = $city;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	        $update['county'] = $county;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($province && $city && $county) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	        $update['area'] = $province . ',' . $city . ',' . $county;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	        $update['address'] = $address;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $update['type'] = $type;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($address) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            $update['address'] = $address;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if ($sex) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $update['sex'] = $sex;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }
 
			 |