Skip to content

Commit

Permalink
chore: 更换过时api
Browse files Browse the repository at this point in the history
  • Loading branch information
Roozenlz committed Nov 30, 2024
1 parent 7595578 commit aa05f1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Mono<AListGetCurrentUserInfoRes> validatePolicyConfig(
// check if the current user has permissions
return handler.getToken(properties)
.flatMap(token -> {
var getMeUri = UriComponentsBuilder.fromHttpUrl(properties.getSite().toString())
var getMeUri = UriComponentsBuilder.fromUriString(properties.getSite().toString())
.path("/api/me")
.toUriString();
return handler.getWebClient().get().uri(getMeUri)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,13 @@ public Mono<URI> getPermalink(Attachment attachment, Policy policy, ConfigMap co
.flatMap(tuple2 -> {
var token = tuple2.getT1();
var fileInfo = tuple2.getT2();
var meUri = fromUriString(
var getMeUri = fromUriString(
properties.getSite().toString())
.path("/api/me")
.toUriString();

return webClient.get()
.uri(meUri)
.uri(getMeUri)
.header(HttpHeaders.AUTHORIZATION, token)
.retrieve()
.bodyToMono(
Expand Down

0 comments on commit aa05f1c

Please sign in to comment.