lyhzzz 1 månad sedan
förälder
incheckning
d77ed25636

+ 0 - 2
src/main/java/com/fdkankan/fusion/httpClient/request/FdkkLoginRequest.java

@@ -9,7 +9,6 @@ public class  FdkkLoginRequest {
     private String phoneNum;
     private String password;
     private String confirmPwd;
-    private String msgAuthCode = "2a22bac40f44af4d3b5fdc20ea706fc5";
     private String areaNum ="86";
     private String code;
     private String deptId;
@@ -34,7 +33,6 @@ public class  FdkkLoginRequest {
         this.phoneNum = phoneNum;
         this.password = password;
         this.confirmPwd = confirmPwd;
-        this.msgAuthCode = msgAuthCode;
     }
 
 }

+ 1 - 7
src/main/java/com/fdkankan/fusion/service/impl/TmUserServiceImpl.java

@@ -25,7 +25,6 @@ import com.fdkankan.fusion.response.UserAddRequest;
 import com.fdkankan.fusion.service.*;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.fdkankan.redis.util.RedisUtil;
-import com.fdkankan.sign.AesUtil;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.ibatis.annotations.Param;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -129,12 +128,7 @@ public class TmUserServiceImpl extends ServiceImpl<ITmUserMapper, TmUser> implem
         if(tmDepartment == null){
             throw new BusinessException(ResultCode.NOT_DEPT);
         }
-        FdkkLoginRequest request = null;
-        try {
-            request = new FdkkLoginRequest(param.getUserName(), AesUtil.encrypt(param.getPassword()),AesUtil.encrypt(param.getPassword()));
-        } catch (Exception e) {
-            throw new BusinessException(ResultCode.PASSWORD_ERROR);
-        }
+        FdkkLoginRequest request = new FdkkLoginRequest(param.getUserName(),param.getPassword(),param.getPassword());
         FdkkResponse fdkkResponse = fdKKClient.fdkkRegister(request);
         if(fdkkResponse.getCode() == 0 ){
             this.addNewUser(param,role);