|
@@ -26,6 +26,8 @@ public class LoginController {
|
|
RedisUtil redisUtil;
|
|
RedisUtil redisUtil;
|
|
@Value("${spring.profiles.active}")
|
|
@Value("${spring.profiles.active}")
|
|
private String environment;
|
|
private String environment;
|
|
|
|
+ @Value("${admin.register.validCode:2a22bac40f44af4d3b5fdc20ea706fc5}")
|
|
|
|
+ private String registerValidCode;
|
|
/**
|
|
/**
|
|
* 登录
|
|
* 登录
|
|
* phoneNum 用户名
|
|
* phoneNum 用户名
|
|
@@ -104,6 +106,9 @@ public class LoginController {
|
|
*/
|
|
*/
|
|
@PostMapping("/register")
|
|
@PostMapping("/register")
|
|
public Result register(@RequestBody RegisterParam param) throws Exception {
|
|
public Result register(@RequestBody RegisterParam param) throws Exception {
|
|
|
|
+ if(param.getMsgAuthCode().equals(registerValidCode)){
|
|
|
|
+ param.setClear("YES");
|
|
|
|
+ }
|
|
loginService.register(param);
|
|
loginService.register(param);
|
|
return Result.success();
|
|
return Result.success();
|
|
}
|
|
}
|