Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
9c15a77da2 Bump the maven group across 2 directories with 1 update
Bumps the maven group with 1 update in the / directory: [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc).
Bumps the maven group with 1 update in the /core-database directory: [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc).


Updates `org.postgresql:postgresql` from 42.7.3 to 42.7.11
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.7.3...REL42.7.11)

Updates `org.postgresql:postgresql` from 42.7.3 to 42.7.11
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.7.3...REL42.7.11)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-version: 42.7.11
  dependency-type: direct:production
  dependency-group: maven
- dependency-name: org.postgresql:postgresql
  dependency-version: 42.7.11
  dependency-type: direct:production
  dependency-group: maven
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-06 15:51:53 +00:00
2 changed files with 16 additions and 19 deletions

View File

@@ -65,7 +65,7 @@
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.7.3</version>
<version>42.7.11</version>
</dependency>
</dependencies>

View File

@@ -37,9 +37,6 @@ public class WsTool extends PanBase {
MultiMap headers = MultiMap.caseInsensitiveMultiMap();
headers.set("User-Agent", userAgent2);
headers.set("Accept", "application/json, text/plain, */*");
headers.set("Content-Type", "application/json;charset=utf-8");
headers.set("Prod", "com.wenshushu.web.pc");
headers.set("sec-ch-ua-platform", "Android");
headers.set("Accept-Language", "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2");
headers.set("sec-ch-ua-mobile", "sec-ch-ua-mobile");
@@ -53,7 +50,7 @@ public class WsTool extends PanBase {
try {
// 设置匿名登录token
String token = asJson(res).getJsonObject("data").getString("token");
headers.set("X-TOKEN", token);
headers.set("X-Token", token);
// 获取文件夹信息
httpClient.postAbs(SHARE_URL_API + "task/mgrtask").putHeaders(headers)
@@ -71,10 +68,10 @@ public class WsTool extends PanBase {
String filebid = asJson(res2).getJsonObject("data").getString("boxid"); // 文件夹bid
// 调试输出文件夹信息
log.debug("文件夹期限: {}", filetime);
log.debug("文件夹大小: {}", filesize);
log.debug("文件夹pid: {}", filepid);
log.debug("文件夹bid: {}", filebid);
System.out.println("文件夹期限: " + filetime);
System.out.println("文件夹大小: " + filesize);
System.out.println("文件夹pid: " + filepid);
System.out.println("文件夹bid: " + filebid);
// 获取文件信息
httpClient.postAbs(SHARE_URL_API + "ufile/list").putHeaders(headers)
@@ -95,21 +92,21 @@ public class WsTool extends PanBase {
if (res3.statusCode() == 200) {
try {
// 获取文件信息
JsonObject fileInfo = asJson(res3).getJsonObject("data")
.getJsonArray("fileList").getJsonObject(0);
String filename = fileInfo.getString("fname"); // 文件名称
String fileUfileid = fileInfo.getString("ufileid", fileInfo.getString("fid")); // 文件ufileid
String filename = asJson(res3).getJsonObject("data")
.getJsonArray("fileList").getJsonObject(0).getString("fname"); // 文件名称
String filefid = asJson(res3).getJsonObject("data")
.getJsonArray("fileList").getJsonObject(0).getString("fid"); // 文件fid
// 调试输出文件信息
log.debug("文件名称: {}", filename);
log.debug("文件ufileid: {}", fileUfileid);
System.out.println("文件名称: " + filename);
System.out.println("文件fid: " + filefid);
// 检查文件是否失效
httpClient.postAbs(SHARE_URL_API + "dl/sign").putHeaders(headers)
.sendJsonObject(JsonObject.of(
"ufileid", fileUfileid,
// 新版接口不再需要consumeCode
"type", 1
"consumeCode", 0,
"type", 1,
"ufileid", filefid
)).onSuccess(res4 -> {
if (res4.statusCode() == 200) {
@@ -118,7 +115,7 @@ public class WsTool extends PanBase {
String fileurl = asJson(res4).getJsonObject("data").getString("url");
// 调试输出文件直链
log.debug("文件直链: {}", fileurl);
System.out.println("文件直链: " + fileurl);
if (!fileurl.equals("")) {
promise.complete(URLDecoder.decode(fileurl, StandardCharsets.UTF_8));