mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-05-09 08:12:56 +00:00
Refine Wenshushu file id handling
Agent-Logs-Url: https://github.com/qaiu/netdisk-fast-download/sessions/8f8b8ba9-4a66-4757-a7f7-4ab342da729e Co-authored-by: qaiu <29825328+qaiu@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
20cca4c458
commit
97b0dd2029
@@ -95,12 +95,10 @@ public class WsTool extends PanBase {
|
||||
if (res3.statusCode() == 200) {
|
||||
try {
|
||||
// 获取文件信息
|
||||
String filename = asJson(res3).getJsonObject("data")
|
||||
.getJsonArray("fileList").getJsonObject(0).getString("fname"); // 文件名称
|
||||
String filefid = asJson(res3).getJsonObject("data")
|
||||
.getJsonArray("fileList").getJsonObject(0)
|
||||
.getString("ufileid", asJson(res3).getJsonObject("data")
|
||||
.getJsonArray("fileList").getJsonObject(0).getString("fid")); // 文件fid
|
||||
JsonObject fileInfo = asJson(res3).getJsonObject("data")
|
||||
.getJsonArray("fileList").getJsonObject(0);
|
||||
String filename = fileInfo.getString("fname"); // 文件名称
|
||||
String filefid = fileInfo.getString("ufileid", fileInfo.getString("fid")); // 文件ufileid
|
||||
|
||||
// 调试输出文件信息
|
||||
System.out.println("文件名称: " + filename);
|
||||
|
||||
Reference in New Issue
Block a user