diff --git a/src/main/java/com/dl/officialsite/sharing/service/impl/DefaultSharingServiceImpl.java b/src/main/java/com/dl/officialsite/sharing/service/impl/DefaultSharingServiceImpl.java index af0a3d6e..aa12b081 100644 --- a/src/main/java/com/dl/officialsite/sharing/service/impl/DefaultSharingServiceImpl.java +++ b/src/main/java/com/dl/officialsite/sharing/service/impl/DefaultSharingServiceImpl.java @@ -78,8 +78,8 @@ public void updateSharing(UpdateSharingReq req, String address) { throw new BizException(CodeEnums.SHARING_NOT_FOUND); } TbShare sharing = existed.get(); - SessionUserInfo userInfo = HttpSessionUtils.getMember(request.getSession()); - Member member = this.memberRepository.findByAddress(userInfo.getAddress()).get(); +// SessionUserInfo userInfo = HttpSessionUtils.getMember(request.getSession()); +// Member member = this.memberRepository.findByAddress(userInfo.getAddress()).get(); // if(!Objects.equals(sharing.getMemberId(), member.getId())){ // throw new BizException(CodeEnums.SHARING_NOT_FOUND); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 0a175bae..f86de2bf 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -10,8 +10,8 @@ spring: url: jdbc:mysql://127.0.0.1:3306/dl?allowPublicKeyRetrieval=true&useSSL=false #type: com.alibaba.druid.pool.DruidDataSource username: root -# password: 12345678 - password: {{SPRING_DATASOURCE_PASSWORD}} + password: 12345678 +# password: {{SPRING_DATASOURCE_PASSWORD}} maximum-pool-size: 20 jpa: