Skip to content

Commit 2fcb77f

Browse files
committed
刷新Token后立刻刷新请求头
1 parent e412556 commit 2fcb77f

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。
44

5+
# 1.0.15
6+
7+
- 刷新Token后立刻刷新请求头
8+
59
# 1.0.14
610

711
- 优化刷新令牌逻辑

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
group=run.ikaros.plugin
22
description=A pan115 plugin for ikaros.
3-
version=1.0.14
3+
version=1.0.15

src/main/java/run/ikaros/plugin/pan115/repository/DefaultPan115Repository.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ public Mono<AttachmentDriver> refreshToken(AttachmentDriver driver) {
177177
log.info("Refresh pan115 token for driver={}", driver.getMountName());
178178
return Mono.just(driver);
179179
})
180+
.doOnSuccess(driver1 -> refreshHttpHeaders(driver1.getAccessToken()))
180181
.doOnError(HttpClientErrorException.class, e ->
181182
log.warn("req pan115 refresh token fail for drier={}", driver.getId()));
182183
}

src/main/resources/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: PluginPan115
44
# plugin entry class that extends BasePlugin
55
clazz: run.ikaros.plugin.pan115.Pan115Plugin
66
# plugin 'version' is a valid semantic version string (see semver.org).
7-
version: 1.0.14
7+
version: 1.0.15
88
requires: ">=1.0.6"
99
author:
1010
name: Ikaros OSS Team

0 commit comments

Comments
 (0)