huwhois 4 years ago
parent
commit
02b1bcd60e

+ 3 - 2
src/main/java/io/renren/modules/app/controller/AppRegisterController.java

@ -71,13 +71,14 @@ public class AppRegisterController {
71 71
    @PostMapping("register")
72 72
    @ApiOperation("注册")
73 73
    public R register(@RequestBody RegisterForm form){
74
        //表单校验
75
         ValidatorUtils.validateEntity(form);
76
         
74 77
        boolean captcha = smsCodeService.validate(form.getUuid(), form.getCode(), form.getPhone());
75 78
		if(!captcha){
76 79
			return R.error("验证码不正确");
77 80
        }
78 81
        
79
        //表单校验
80
         ValidatorUtils.validateEntity(form);
81 82
82 83
         UserEntity user = new UserEntity();
83 84
         user.setPhone(form.getPhone());

+ 1 - 1
src/main/resources/application.yml

@ -12,7 +12,7 @@ server:
12 12
spring:
13 13
  # 环境 dev|test|prod
14 14
  profiles:
15
    active: test
15
    active: dev
16 16
  # jackson时间格式化
17 17
  jackson:
18 18
    time-zone: GMT+8