From 09140d56a355fcaa3b5e579494997e5e3cd668b4 Mon Sep 17 00:00:00 2001 From: qaiu <736226400@qq.com> Date: Thu, 10 Aug 2023 01:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84=E4=BC=98?= =?UTF-8?q?=E5=8C=96;=E4=BF=AE=E5=A4=8D123pan=E8=A7=A3=E6=9E=90=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98#9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/cn/qaiu/lz/common/parser/impl/YeTool.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web-service/src/main/java/cn/qaiu/lz/common/parser/impl/YeTool.java b/web-service/src/main/java/cn/qaiu/lz/common/parser/impl/YeTool.java index c8b6527..51f12b7 100644 --- a/web-service/src/main/java/cn/qaiu/lz/common/parser/impl/YeTool.java +++ b/web-service/src/main/java/cn/qaiu/lz/common/parser/impl/YeTool.java @@ -25,10 +25,10 @@ public class YeTool extends PanBase implements IPanTool { public static final String SHARE_URL_PREFIX = "https://www.123pan.com/s/"; public static final String FIRST_REQUEST_URL = SHARE_URL_PREFIX + "{key}.html"; - private static final String GET_FILE_INFO_URL = "https://www.123pan.com/b/api/share/get?limit=100&next=1&orderBy" + + private static final String GET_FILE_INFO_URL = "https://www.123pan.com/a/api/share/get?limit=100&next=1&orderBy" + "=file_name&orderDirection=asc" + "&shareKey={shareKey}&SharePwd={pwd}&ParentFileId=0&Page=1&event=homeListFile&operateType=1"; - private static final String DOWNLOAD_API_URL = "https://www.123pan.com/b/api/share/download/info?{authK}={authV}"; + private static final String DOWNLOAD_API_URL = "https://www.123pan.com/a/api/share/download/info?{authK}={authV}"; public YeTool(String key, String pwd) { super(key, pwd); @@ -64,7 +64,7 @@ public class YeTool extends PanBase implements IPanTool { client.getAbs(UriTemplate.of(GET_FILE_INFO_URL)) .setTemplateParam("shareKey", shareKey) .setTemplateParam("pwd", pwd) - // .setTemplateParam("authKey", AESUtils.getAuthKey("/b/api/share/get")) + // .setTemplateParam("authKey", AESUtils.getAuthKey("/a/api/share/get")) .putHeader("Platform", "web") .putHeader("App-Version", "3") .send().onSuccess(res2 -> { @@ -106,7 +106,7 @@ public class YeTool extends PanBase implements IPanTool { // 调用JS文件获取签名 ScriptObjectMirror getSign; try { - getSign = JsExecUtils.executeJs("getSign", "/b/api/share/download/info"); + getSign = JsExecUtils.executeJs("getSign", "/a/api/share/download/info"); } catch (Exception e) { fail(e, "JS函数执行异常"); return;