Browse Source

火调注册用户

lyhzzz 2 years ago
parent
commit
d4fecfab26

+ 5 - 0
src/main/java/com/fdkankan/ucenter/service/impl/LoginService.java

@@ -55,6 +55,8 @@ public class LoginService {
     private String cnCode;
     private String cnCode;
     @Value("${main.url}")
     @Value("${main.url}")
     private String mainUrl;
     private String mainUrl;
+    @Value("${admin.register.validCode:2a22bac40f44af4d3b5fdc20ea706fc5}")
+    private String registerValidCode;
 
 
     public LoginVo login(LoginParam param) {
     public LoginVo login(LoginParam param) {
         if (StringUtils.isEmpty(param.getPassword()) || StringUtils.isEmpty(param.getPhoneNum())){
         if (StringUtils.isEmpty(param.getPassword()) || StringUtils.isEmpty(param.getPhoneNum())){
@@ -162,6 +164,9 @@ public class LoginService {
         if (!param.getConfirmPwd().equals(param.getPassword())){
         if (!param.getConfirmPwd().equals(param.getPassword())){
             throw new BusinessException(LoginConstant.FAILURE_CODE_3009, LoginConstant.FAILURE_MSG_3009);
             throw new BusinessException(LoginConstant.FAILURE_CODE_3009, LoginConstant.FAILURE_MSG_3009);
         }
         }
+        if(param.getMsgAuthCode().equals(registerValidCode)){
+
+        }
         checkSms(param.getMsgAuthCode(),param.getPhoneNum(),true);
         checkSms(param.getMsgAuthCode(),param.getPhoneNum(),true);
         User user = userService.getByUserName(param.getPhoneNum());
         User user = userService.getByUserName(param.getPhoneNum());
         if(user != null){
         if(user != null){