| 
					
				 | 
			
			
				@@ -10,6 +10,7 @@ import com.kmall.api.service.ApiAddressService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.api.service.ApiStoreService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.api.util.ApiBaseAction; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.api.util.CommonUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.kmall.common.utils.PhoneFormatCheckUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.GetMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.PostMapping; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -63,6 +64,9 @@ public class ApiAddressController extends ApiBaseAction { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         JSONObject addressJson = this.getJsonRequest(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         AddressVo entity = new AddressVo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (null != addressJson) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!PhoneFormatCheckUtils.isPhoneLegal(addressJson.getString("telNumber"))) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return toResponsFail("手机号格式有误!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             entity.setId(addressJson.getLong("id")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             entity.setUserId(loginUser.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             entity.setUserName(addressJson.getString("userName")); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -116,6 +120,9 @@ public class ApiAddressController extends ApiBaseAction { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         JSONObject addressJson = this.getJsonRequest(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         AddressVo entity = new AddressVo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (null != addressJson) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!PhoneFormatCheckUtils.isPhoneLegal(addressJson.getString("telNumber"))) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return toResponsFail("手机号格式有误!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             entity.setUserId(loginUser.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             entity.setUserName(addressJson.getString("userName")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             entity.setPostalCode(addressJson.getString("postalCode")); 
			 |