小飞机网盘分享新URL格式适配

This commit is contained in:
qaiu
2023-11-02 10:43:10 +08:00
parent d5e2b9cb3e
commit 1d6953d7c7
4 changed files with 21 additions and 15 deletions

View File

@@ -127,7 +127,7 @@ GET http://127.0.0.1:6400/json/fc/e5079007dc31226096628870c7@QAIU
| 网盘名称 | 可直接下载分享 | 加密分享 | 初始网盘空间 | 单文件大小限制 | 登录接口 |
|------------|------------------------|----------|-----------|---------|------|
|------------|------------------------|----------|-----------|-----------------|------|
| 蓝奏云 | √ | √ | 不限空间 | 100M | TODO |
| 奶牛快传 | √ | X | 10G | 不限大小 | TODO |
| 移动云空间 | √ | √(密码可忽略) | 5G(个人) | 不限大小 | TODO |

View File

@@ -34,7 +34,7 @@ public interface IPanTool {
return new UcTool(url, pwd);
} else if (url.startsWith(YeTool.SHARE_URL_PREFIX)) {
return new YeTool(url, pwd);
} else if (url.startsWith(FjTool.SHARE_URL_PREFIX)) {
} else if (url.startsWith(FjTool.SHARE_URL_PREFIX) || url.startsWith(FjTool.SHARE_URL_PREFIX2)) {
return new FjTool(url, pwd);
} else if (url.contains(LzTool.LINK_KEY)) {
return new LzTool(url, pwd);

View File

@@ -20,6 +20,7 @@ import java.util.UUID;
public class FjTool extends PanBase implements IPanTool {
public static final String SHARE_URL_PREFIX = "https://www.feijix.com/s/";
public static final String SHARE_URL_PREFIX2 = "https://share.feijipan.com/s/";
private static final String API_URL_PREFIX = "https://api.feijipan.com/ws/";
private static final String FIRST_REQUEST_URL = API_URL_PREFIX + "recommend/list?devType=6&devModel=Chrome&extra" +
@@ -33,7 +34,12 @@ public class FjTool extends PanBase implements IPanTool {
}
public Future<String> parse() {
String dataKey = CommonUtils.adaptShortPaths(SHARE_URL_PREFIX, key);
String dataKey;
if (key.startsWith(SHARE_URL_PREFIX2)) {
dataKey = CommonUtils.adaptShortPaths(SHARE_URL_PREFIX2, key);
} else {
dataKey = CommonUtils.adaptShortPaths(SHARE_URL_PREFIX, key);
}
WebClient client = clientNoRedirects;
String shareId = String.valueOf(AESUtils.idEncrypt(dataKey));

View File

@@ -58,9 +58,9 @@ GET http://127.0.0.1:6400/json/uc/33197dd53ace4
GET http://127.0.0.1:6400/parser?url=https://fast.uc.cn/s/33197dd53ace4
### 小飞机盘
### 小飞机盘https://share.feijipan.com/s/nMtCOXL
# @no-redirect
GET http://127.0.0.1:6400/parser?url=https://www.feijix.com/s/tIfhRqH
GET http://127.0.0.1:6400/parser?url=https://share.feijipan.com/s/nMtCOXL
### 小飞机盘
GET http://127.0.0.1:6400/json/fj/tIfhRqH