From 5df2245e6469d8ef62580964bf50ef24487bd8ef Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期五, 22 七月 2022 15:05:26 +0800 Subject: [PATCH] bug修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java index 9fcc733..48a463b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java @@ -7,6 +7,8 @@ import javax.annotation.Resource; +import com.panzhihua.common.model.vos.community.ComActPasswordVo; +import com.panzhihua.service_community.util.MyAESUtil; import org.springframework.beans.BeanUtils; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.stereotype.Service; @@ -281,7 +283,13 @@ @Override public R getCommunityPassword(Long communityId){ - return R.ok(comActDAO.getCommunityPassword(communityId)); + ComActPasswordVo comActPasswordVo=comActDAO.getCommunityPassword(communityId); + try { + comActPasswordVo.setPassword(MyAESUtil.Decrypt(comActPasswordVo.getPassword(),"Ryo7M3n8loC5Abcd")); + } catch (Exception e) { + e.printStackTrace(); + } + return R.ok(comActPasswordVo); } } -- Gitblit v1.7.1