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;