| | |
| | | import cn.gistack.common.utils.Base64Utils; |
| | | import cn.gistack.pwd.dto.CBCResultDTO; |
| | | import cn.gistack.pwd.dto.ResultDTO; |
| | | //import cn.gistack.pwd.fegin.IPwdClient; |
| | | import cn.gistack.pwd.fegin.IPwdClient; |
| | | import cn.gistack.sm.collect.feign.ICollectClient; |
| | | import cn.gistack.sm.collect.feign.ICollectClientFallback; |
| | | import cn.gistack.sm.sjztmd.entity.AttResManagePerson; |
| | |
| | | |
| | | private final ICollectClient collectClient; |
| | | |
| | | // private final IPwdClient pwdClient; |
| | | private final IPwdClient pwdClient; |
| | | |
| | | @Override |
| | | @SneakyThrows |
| | |
| | | } |
| | | |
| | | //拼接用户所属行政区划、责任人需要返回水库ids |
| | | userInfo.getDetail().set("resIds",""); |
| | | if (StringUtil.isNotBlank(user.getPhone())) { |
| | | R<AttResManagePerson> attRes = attResManagePersonClient.queryListByPhone(user.getPhone()); |
| | | userInfo.getDetail().set("resIds",attRes.getData()); |
| | | } |
| | | // userInfo.getDetail().set("resIds",""); |
| | | // if (StringUtil.isNotBlank(user.getPhone())) { |
| | | // R<AttResManagePerson> attRes = attResManagePersonClient.queryListByPhone(user.getPhone()); |
| | | // userInfo.getDetail().set("resIds",attRes.getData()); |
| | | // } |
| | | |
| | | //返回手机号 |
| | | userInfo.getDetail().set("phone",Base64Utils.getBase64Encode(user.getPhone())); |
| | |
| | | // if (encryptRes.getCode() != 200){ |
| | | // throw new UserDeniedAuthorizationException("获取密钥失败"); |
| | | // } |
| | | |
| | | //解码Base64 |
| | | // |
| | | // //解码Base64 |
| | | // String JSONstr = Base64Utils.getBase64Decode(encryptRes.getData().getData()); |
| | | // |
| | | // pwdClient.verify(loginUserInfo.getMaced(),loginUserInfo.getSm4iv(),loginUserInfo.getKeyindexs(),JSONstr,loginUserInfo.getId().toString(),"blade_user"); |