Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron committed Dec 12, 2023
1 parent 21fca6e commit 113b40e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 113b40e

Please sign in to comment.