|
@@ -25,6 +25,7 @@ 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;
|
|
@@ -128,7 +129,14 @@ public class TmUserServiceImpl extends ServiceImpl<ITmUserMapper, TmUser> implem
|
|
|
if(tmDepartment == null){
|
|
|
throw new BusinessException(ResultCode.NOT_DEPT);
|
|
|
}
|
|
|
- FdkkLoginRequest request = new FdkkLoginRequest(param.getUserName(),param.getPassword(),param.getPassword());
|
|
|
+ String password = Base64Converter.decode(Base64Converter.subText(param.getPassword()));
|
|
|
+
|
|
|
+ FdkkLoginRequest request = null;
|
|
|
+ try {
|
|
|
+ request = new FdkkLoginRequest(param.getUserName(), AesUtil.encrypt(password),AesUtil.encrypt(password));
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new BusinessException(ResultCode.PASSWORD_ERROR);
|
|
|
+ }
|
|
|
FdkkResponse fdkkResponse = fdKKClient.fdkkRegister(request);
|
|
|
if(fdkkResponse.getCode() == 0 ){
|
|
|
this.addNewUser(param,role);
|