limin 7 anos atrás
pai
commit
845af2564a

+ 2 - 2
src/main/java/com/goafanti/user/controller/UserApiController.java

@@ -708,12 +708,12 @@ public class UserApiController extends BaseApiController {
 			Pattern p = Pattern.compile("^[1][3,4,5,7,8][0-9]{9}$"); // 验证手机号           
 			Matcher m = p.matcher(mobile);   
 			if(!m.matches()){
-				res.getError().add(buildError(null,"电话号码格式不对","电话号码格式不对"));
+				res.getError().add(buildError("电话号码格式不对","电话号码格式不对"));
 			}else{
 				//验证手机是否存在
 				int i = userService.getCountByMobile(user.getId(),mobile);
 				if(i>0){
-					res.getError().add(buildError(null,"电话号码重复","电话号码重复"));
+					res.getError().add(buildError("电话号码重复","电话号码重复"));
 				}else{
 					user.setMobile(mobile);//修改电话号码
 				}