Merge pull request #10 from qaiu/master

Master
This commit is contained in:
qaiu
2023-08-10 01:17:11 +08:00
committed by GitHub
3 changed files with 10 additions and 5 deletions

View File

@@ -40,10 +40,10 @@ public class YeTool implements IPanTool {
={authKey}"; ={authKey}";
*/ */
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" + "=file_name&orderDirection=asc" +
"&shareKey={shareKey}&SharePwd={pwd}&ParentFileId=0&Page=1&event=homeListFile&operateType=1"; "&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 Future<String> parse(String data, String code) { public Future<String> parse(String data, String code) {
@@ -119,7 +119,7 @@ public class YeTool implements IPanTool {
// 调用JS文件获取签名 // 调用JS文件获取签名
ScriptObjectMirror getSign; ScriptObjectMirror getSign;
try { try {
getSign = JsExecUtils.executeJs("getSign", "/b/api/share/download/info"); getSign = JsExecUtils.executeJs("getSign", "/a/api/share/download/info");
} catch (ScriptException | IOException | NoSuchMethodException e) { } catch (ScriptException | IOException | NoSuchMethodException e) {
promise.fail(e); promise.fail(e);
return; return;

View File

@@ -119,3 +119,8 @@ Platform:web
{"ShareKey":"iaKtVv-6OECd","behavior":1} {"ShareKey":"iaKtVv-6OECd","behavior":1}
### eaefamemdead ### eaefamemdead
POST https://www.123pan.com/a/api/share/download/info?598392083=1691599441-4130548-2079498810
App-Version:3
Platform:web
{"ShareKey":"iaKtVv-ICECd","FileID":2169781,"S3keyFlag":"1815268665-0","Size":163708684,"Etag":"e7f288198505ae4481d638f1f42f1477"}

View File

@@ -65,8 +65,8 @@ public class TestAESUtil {
@Test @Test
public void testKeyAuth(){ public void testKeyAuth(){
System.out.println(AESUtils.getAuthKey("/b/api/share/download/info")); System.out.println(AESUtils.getAuthKey("/a/api/share/download/info"));
System.out.println(AESUtils.getAuthKey("/b/api/share/download/info")); System.out.println(AESUtils.getAuthKey("/a/api/share/download/info"));
System.out.println(AESUtils.getAuthKey("/b/api/share/get")); System.out.println(AESUtils.getAuthKey("/b/api/share/get"));
} }