代码优化

This commit is contained in:
qaiu
2024-05-15 08:35:28 +08:00
parent d7349cbf05
commit db7aa2f442
6 changed files with 43 additions and 23 deletions

24
note.txt Normal file
View File

@@ -0,0 +1,24 @@
直链缓存设计
每个网盘对应的标准分享URL如下
蓝奏云 (lz) https://lanzoux.com/{shareKey}
蓝奏云优享 (iz) https://www.ilanzou.com/s/{shareKey}
奶牛快传 (cow) https://cowtransfer.com/s/{shareKey}
移动云云空间 (ec) https://www.ecpan.cn/web/#/yunpanProxy?path=%2F%23%2Fdrive%2Foutside&data={shareKey}&isShare=1
小飞机网盘 (fj) https://share.feijipan.com/s/{shareKey}
亿方云 (fc) https://v2.fangcloud.com/sharing/{shareKey}
123云盘 (ye) https://www.123pan.com/s/{shareKey}.html
文叔叔 (ws) https://f.ws59.cn/f/{shareKey}
联想乐云 (le) https://lecloud.lenovo.com/share/{shareKey}
私有化网盘需要自己的域名也就是origin地址.
Cloudreve自建网盘 (ce) {origin}/s/{shareKey}
分享URL -> 类型+key
类型+key -> 标准分享URL
缓存key -> 下载URL
分享链接 -> add 网盘类型 pwd origin(私有化) -> 直链
https://f.ws59.cn/f/e3peohu6192

View File

@@ -26,7 +26,6 @@ public class WsTool extends PanBase implements IPanTool {
super(key, pwd); super(key, pwd);
} }
@SuppressWarnings("unchecked")
public Future<String> parse() { public Future<String> parse() {
WebClient httpClient = this.client; WebClient httpClient = this.client;

View File

@@ -1,12 +0,0 @@
package cn.qaiu.util;
/**
* @author <a href="https://qaiu.top">QAIU</a>
* @date 2023/7/16 1:53
*/
public class PanExceptionUtils {
public static RuntimeException fillRunTimeException(String name, String dataKey, Throwable t) {
return new RuntimeException(name + ": 请求异常: key = " + dataKey, t.fillInStackTrace());
}
}

View File

@@ -7,6 +7,7 @@ import cn.qaiu.vx.core.annotaions.RouteHandler;
import cn.qaiu.vx.core.annotaions.RouteMapping; import cn.qaiu.vx.core.annotaions.RouteMapping;
import cn.qaiu.vx.core.enums.RouteMethod; import cn.qaiu.vx.core.enums.RouteMethod;
import cn.qaiu.vx.core.util.ResponseUtil; import cn.qaiu.vx.core.util.ResponseUtil;
import cn.qaiu.vx.core.util.VertxHolder;
import io.vertx.core.Future; import io.vertx.core.Future;
import io.vertx.core.Promise; import io.vertx.core.Promise;
import io.vertx.core.http.HttpServerRequest; import io.vertx.core.http.HttpServerRequest;

View File

@@ -1,3 +0,0 @@
curl -F "file=@C:\Users\qaiu\Desktop\real\lz-web\web\src\main\resources\logback.xml" -i -XPOST 127.0.0.1:6400/demo/XXX/XXX
curl -F "file=@C:\Users\qaiu\Desktop\3.csv" -i -XPOST 127.0.0.1:6400/demo/XXX/XXX

View File

@@ -30,14 +30,14 @@ GET http://127.0.0.1:6400/json/parser?url=https://www.ilanzou.com/s/6XwnC4X
### ###
GET http://127.0.0.1:6400/json/parser?url=https://www.ilanzou.com/s/zHkna1S GET http://127.0.0.1:6400/json/parser?url=https://www.ilanzou.com/s/zHkna1S
### 奶牛 ### 奶牛 https://cowtransfer.com/s/9a644fe3e3a748
GET http://127.0.0.1:6400/json/cow/9a644fe3e3a748 GET http://127.0.0.1:6400/json/cow/9a644fe3e3a748
Referer: https://cowtransfer.com/ Referer: https://cowtransfer.com/
### 奶牛 ### 奶牛
# @no-redirect # @no-redirect
GET http://127.0.0.1:6400/cow/e4f41b51b5da4f GET http://127.0.0.1:6400/cow/e4f41b51b5da4f
Referer: https://cowtransfer.com/
### 奶牛 ### 奶牛
# @no-redirect # @no-redirect
@@ -55,8 +55,13 @@ GET http://127.0.0.1:6400/parser?url=https://www.ecpan.cn/web//yunpanProxy?path=
# @no-redirect # @no-redirect
GET http://127.0.0.1:6400/ec/81027a5c99af5b11ca004966c945cce6W9Bf2 GET http://127.0.0.1:6400/ec/81027a5c99af5b11ca004966c945cce6W9Bf2
### https://www.ecpan.cn/web/#/yunpanProxy?path=%2F%23%2Fdrive%2Foutside&data=4b3d786755688b85c6eb0c04b9124f4dalzdaJpXHx&isShare=1 密码 T6O1RC
GET http://127.0.0.1:6400/json/ec/4b3d786755688b85c6eb0c04b9124f4dalzdaJpXHx@T6O1RC
### ###
GET http://127.0.0.1:6400/json/ec/aa0cae0164d8885e6d35826b5b2901eckbWJBalM #@no-redirect
GET http://127.0.0.1:6400/parser?url=https://www.ecpan.cn/web/#/yunpanProxy?path=%2F%23%2Fdrive%2Foutside&data=4b3d786755688b85c6eb0c04b9124f4dalzdaJpXHx&isShare=1&pwd=T6O1RC
### UC网盘 ### UC网盘
@@ -86,8 +91,11 @@ GET http://127.0.0.1:6400/json/fj/7jy0zlv
### 小飞机盘 ### 小飞机盘
# @no-redirect # @no-redirect
GET http://127.0.0.1:6400/fj/tIfhRqH GET http://127.0.0.1:6400/fj/tIfhRqH
### 小飞机盘 https://share.feijipan.com/s/nMtCOXL
# @no-redirect
GET http://127.0.0.1:6400/fj/nMtCOXL
### 360亿方云 ### 360亿方云 https://v2.fangcloud.com/sharing/fb54bdf03c66c04334fe3687a3
# @no-redirect # @no-redirect
GET http://127.0.0.1:6400/parser?url=https://v2.fangcloud.com/sharing/fb54bdf03c66c04334fe3687a3 GET http://127.0.0.1:6400/parser?url=https://v2.fangcloud.com/sharing/fb54bdf03c66c04334fe3687a3
@@ -117,9 +125,9 @@ GET http://127.0.0.1:6400/ye/iaKtVv-qOECd
# @no-redirect # @no-redirect
GET http://127.0.0.1:6400/ye/Ev1lVv-t3SY3 GET http://127.0.0.1:6400/ye/Ev1lVv-t3SY3
### 123 ### 123 https://www.123pan.com/s/iaKtVv-6OECd.html
# @no-redirect # @no-redirect
GET http://127.0.0.1:6400/parser?url=https://www.123pan.com/s/iaKtVv-6OECd.html&pwd=DcGe GET http://127.0.0.1:6400/json/parser?url=https://www.123pan.com/s/iaKtVv-6OECd.html&pwd=DcGe
### 123 ### 123
@@ -142,10 +150,13 @@ GET http://127.0.0.1:6400/le/2RkKbLP9BrppS9b43@ex2b
### 联想乐云 ### 联想乐云
GET http://127.0.0.1:6400/json/le/2RkKbLP9BrppS9b43@ex2b GET http://127.0.0.1:6400/json/le/2RkKbLP9BrppS9b43@ex2b
### 文叔叔
GET http://127.0.0.1:6400/json/parser?url=https://f.ws59.cn/f/e3peohu6192
### Cloudreve ### Cloudreve
GET http://127.0.0.1:6400/json/ce/https_pan.huang1111.cn_s_wDz5TK GET http://127.0.0.1:6400/json/ce/https_pan.huang1111.cn_s_wDz5TK
### Cloudreve ### Cloudreve https://pan.huang1111.cn/s/g31PcQ
GET http://127.0.0.1:6400/json/parser?url=https://pan.huang1111.cn/s/g31PcQ&pwd=qaiu GET http://127.0.0.1:6400/json/parser?url=https://pan.huang1111.cn/s/g31PcQ&pwd=qaiu
### ###