Skip to content

Commit db7aa2f

Browse files
committed
代码优化
1 parent d7349cb commit db7aa2f

File tree

6 files changed

+43
-23
lines changed

6 files changed

+43
-23
lines changed

note.txt

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

parser/src/main/java/cn/qaiu/parser/impl/WsTool.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public WsTool(String key, String pwd) {
2626
super(key, pwd);
2727
}
2828

29-
@SuppressWarnings("unchecked")
3029
public Future<String> parse() {
3130

3231
WebClient httpClient = this.client;

parser/src/main/java/cn/qaiu/util/PanExceptionUtils.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

web-service/src/main/java/cn/qaiu/lz/web/http/ServerApi.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import cn.qaiu.vx.core.annotaions.RouteMapping;
88
import cn.qaiu.vx.core.enums.RouteMethod;
99
import cn.qaiu.vx.core.util.ResponseUtil;
10+
import cn.qaiu.vx.core.util.VertxHolder;
1011
import io.vertx.core.Future;
1112
import io.vertx.core.Promise;
1213
import io.vertx.core.http.HttpServerRequest;

web-service/src/main/resources/http-tools/curl.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

web-service/src/main/resources/http-tools/test.http

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ GET http://127.0.0.1:6400/json/parser?url=https://www.ilanzou.com/s/6XwnC4X
3030
###
3131
GET http://127.0.0.1:6400/json/parser?url=https://www.ilanzou.com/s/zHkna1S
3232

33-
### 奶牛
33+
### 奶牛 https://cowtransfer.com/s/9a644fe3e3a748
3434
GET http://127.0.0.1:6400/json/cow/9a644fe3e3a748
3535
Referer: https://cowtransfer.com/
3636

3737
### 奶牛
3838
# @no-redirect
3939
GET http://127.0.0.1:6400/cow/e4f41b51b5da4f
40-
Referer: https://cowtransfer.com/
40+
4141

4242
### 奶牛
4343
# @no-redirect
@@ -55,8 +55,13 @@ GET http://127.0.0.1:6400/parser?url=https://www.ecpan.cn/web//yunpanProxy?path=
5555
# @no-redirect
5656
GET http://127.0.0.1:6400/ec/81027a5c99af5b11ca004966c945cce6W9Bf2
5757

58+
### https://www.ecpan.cn/web/#/yunpanProxy?path=%2F%23%2Fdrive%2Foutside&data=4b3d786755688b85c6eb0c04b9124f4dalzdaJpXHx&isShare=1 密码 T6O1RC
59+
GET http://127.0.0.1:6400/json/ec/4b3d786755688b85c6eb0c04b9124f4dalzdaJpXHx@T6O1RC
60+
5861
###
59-
GET http://127.0.0.1:6400/json/ec/aa0cae0164d8885e6d35826b5b2901eckbWJBalM
62+
#@no-redirect
63+
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
64+
6065

6166

6267
### UC网盘
@@ -86,8 +91,11 @@ GET http://127.0.0.1:6400/json/fj/7jy0zlv
8691
### 小飞机盘
8792
# @no-redirect
8893
GET http://127.0.0.1:6400/fj/tIfhRqH
94+
### 小飞机盘 https://share.feijipan.com/s/nMtCOXL
95+
# @no-redirect
96+
GET http://127.0.0.1:6400/fj/nMtCOXL
8997

90-
### 360亿方云
98+
### 360亿方云 https://v2.fangcloud.com/sharing/fb54bdf03c66c04334fe3687a3
9199
# @no-redirect
92100
GET http://127.0.0.1:6400/parser?url=https://v2.fangcloud.com/sharing/fb54bdf03c66c04334fe3687a3
93101

@@ -117,9 +125,9 @@ GET http://127.0.0.1:6400/ye/iaKtVv-qOECd
117125
# @no-redirect
118126
GET http://127.0.0.1:6400/ye/Ev1lVv-t3SY3
119127

120-
### 123
128+
### 123 https://www.123pan.com/s/iaKtVv-6OECd.html
121129
# @no-redirect
122-
GET http://127.0.0.1:6400/parser?url=https://www.123pan.com/s/iaKtVv-6OECd.html&pwd=DcGe
130+
GET http://127.0.0.1:6400/json/parser?url=https://www.123pan.com/s/iaKtVv-6OECd.html&pwd=DcGe
123131

124132

125133
### 123
@@ -142,10 +150,13 @@ GET http://127.0.0.1:6400/le/2RkKbLP9BrppS9b43@ex2b
142150
### 联想乐云
143151
GET http://127.0.0.1:6400/json/le/2RkKbLP9BrppS9b43@ex2b
144152

153+
### 文叔叔
154+
GET http://127.0.0.1:6400/json/parser?url=https://f.ws59.cn/f/e3peohu6192
155+
145156
### Cloudreve
146157
GET http://127.0.0.1:6400/json/ce/https_pan.huang1111.cn_s_wDz5TK
147158

148-
### Cloudreve
159+
### Cloudreve https://pan.huang1111.cn/s/g31PcQ
149160
GET http://127.0.0.1:6400/json/parser?url=https://pan.huang1111.cn/s/g31PcQ&pwd=qaiu
150161

151162
###

0 commit comments

Comments
 (0)