mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 12:23:03 +00:00
do db
This commit is contained in:
10
README.md
10
README.md
@@ -30,3 +30,13 @@ TODO:
|
||||
解析蓝奏云加密链接
|
||||
|
||||
|
||||
# 网盘对比
|
||||
|
||||
| 网盘名称 | 可直接下载分享 | 加密分享 | 初始网盘空间 | 单文件大小限制 | 登录接口 |
|
||||
|------|-------------|------|----------|----------------|------|
|
||||
| 蓝奏云 | √ | √ | 不限空间 | 100M | √ |
|
||||
| 奶牛快传 | √ | X | 10G | 不限大小 | √ |
|
||||
| 夸克网盘 | X(>10M需要登录) | √ | 10G(20G) | 不限大小(>10M需要登录) | X |
|
||||
| 天翼云盘 | | | | | |
|
||||
| 阿里云盘 | | | | | |
|
||||
|
||||
|
||||
@@ -88,7 +88,14 @@ public class JDBCPoolInit {
|
||||
}
|
||||
|
||||
private void poolInitExecute(Promise<String> promise) {
|
||||
// 初始化H2db, 创建本地db文件
|
||||
// 初始化连接池
|
||||
pool = JDBCPool.pool(vertx, dbConfig);
|
||||
CreateTable.createTable(pool, dbConfig.getString("tableClassPath"));
|
||||
promise.complete("init jdbc pool success");
|
||||
|
||||
}
|
||||
|
||||
private void checkOrCreateDBFile() {
|
||||
LOGGER.info("init sql start");
|
||||
String[] path = url.split("\\./");
|
||||
path[1] = path[1].split(";")[0];
|
||||
@@ -109,14 +116,12 @@ public class JDBCPoolInit {
|
||||
throw new RuntimeException("file create failed");
|
||||
}
|
||||
}
|
||||
// 初始化连接池
|
||||
pool = JDBCPool.pool(vertx, dbConfig);
|
||||
CreateTable.createTable(pool, dbConfig.getString("tableClassPath"));
|
||||
promise.complete("init jdbc pool success");
|
||||
|
||||
}
|
||||
|
||||
private void h2serverExecute(Promise<String> promise) {
|
||||
// 初始化H2db, 创建本地db文件
|
||||
checkOrCreateDBFile();
|
||||
|
||||
try {
|
||||
String url = dbConfig.getString("jdbcUrl");
|
||||
String[] portStr = url.split(":");
|
||||
|
||||
@@ -53,6 +53,12 @@
|
||||
<artifactId>jsoup</artifactId>
|
||||
<version>1.15.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.vertx</groupId>
|
||||
<artifactId>vertx-web-client</artifactId>
|
||||
<version>4.4.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.qaiu</groupId>
|
||||
<artifactId>core-database</artifactId>
|
||||
|
||||
@@ -40,6 +40,55 @@ https://cowtransfer.com/core/api/transfer/share/download?transferGuid=e4f41b51-b
|
||||
https://cowtransfer.com/core/api/dam/asset/files/download/23890683765739569/url/v2
|
||||
authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJndWlkIjoiMDc1OTMwNGItMDEwZS00MGJiLTlhNDUtZTczY2Q5ODYzMDQwIiwiZXhwIjoxNjgzNzkzOTExfQ.rE9z0vhogPjUC0I92MqU8U_PKe4j_mGn7lGgPFMGt5c
|
||||
|
||||
###
|
||||
POST https://cowtransfer.com/api/user/emaillogin
|
||||
Content-Type: multipart/form-data; boundary=WebAppBoundary
|
||||
|
||||
--WebAppBoundary
|
||||
Content-Disposition: form-data; name="email"
|
||||
|
||||
736226400@qq.com
|
||||
--WebAppBoundary
|
||||
Content-Disposition: form-data; name="password"
|
||||
|
||||
4458225ff
|
||||
--WebAppBoundary--
|
||||
# eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJndWlkIjoiMDc1OTMwNGItMDEwZS00MGJiLTlhNDUtZTczY2Q5ODYzMDQwIiwiZXhwIjoxNjg0NDYyMjMzfQ.AeuB5-aQUlgudoLDRgvFodlHx2qKiPFx3BAqGA0R-eE
|
||||
# eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJndWlkIjoiMDc1OTMwNGItMDEwZS00MGJiLTlhNDUtZTczY2Q5ODYzMDQwIiwiZXhwIjoxNjg0NDYyMjMzfQ.AeuB5-aQUlgudoLDRgvFodlHx2qKiPFx3BAqGA0R-eE
|
||||
|
||||
|
||||
###
|
||||
POST https://cowtransfer.com/api/user/register/emailregistrationcheck
|
||||
Content-Type: multipart/form-data; boundary=WebAppBoundary
|
||||
|
||||
--WebAppBoundary
|
||||
Content-Disposition: form-data; name="email"
|
||||
|
||||
736226400@qq.com
|
||||
--WebAppBoundary
|
||||
Content-Disposition: form-data; name="joinProToken"
|
||||
|
||||
|
||||
--WebAppBoundary--
|
||||
|
||||
|
||||
|
||||
### Send a form with the text and file fields
|
||||
POST https://httpbin.org/post
|
||||
Content-Type: multipart/form-data; boundary=WebAppBoundary
|
||||
|
||||
--WebAppBoundary
|
||||
Content-Disposition: form-data; name="element-name"
|
||||
Content-Type: text/plain
|
||||
|
||||
Name
|
||||
--WebAppBoundary
|
||||
Content-Disposition: form-data; name="data"; filename="data.json"
|
||||
Content-Type: application/json
|
||||
|
||||
< ./request-form-data.json
|
||||
--WebAppBoundary--
|
||||
|
||||
###
|
||||
POST https://drive-pc.quark.cn/1/clouddrive/file/download?pr=ucpro&fr=pc
|
||||
content-type: application/json;charset=UTF-8
|
||||
@@ -55,3 +104,19 @@ cookie: __pus=77641f2139b914c29ed2b0caf246723dAAQbjDyR/fi1Z9YqqWbfO2qPZYeRTrFSC2
|
||||
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/2.5.20 Chrome/100.0.4896.160 Electron/18.3.5.4-b478491100 Safari/537.36 Channel/pckk_other_ch
|
||||
|
||||
{"fids":["b3faf7f72ac64f94b4749588fc197816"]}
|
||||
|
||||
### quark_pan
|
||||
# 我用夸克网盘分享了「C# Shell (C# Offline Compiler)_2.5.16.apk」,点击链接即可保存。打开「夸克APP」,无需下载在线播放视频,畅享原画5倍速,支持电视投屏。
|
||||
#链接:https://pan.quark.cn/s/8f816f506409
|
||||
# step1 获取stoken
|
||||
POST https://drive-pc.quark.cn/1/clouddrive/share/sharepage/token?pr=ucpro&fr=pc
|
||||
accept: application/json, text/plain, */*
|
||||
content-type: application/json
|
||||
|
||||
{"pwd_id":"8f816f506409","passcode":""}
|
||||
|
||||
### quark_pan
|
||||
# step2 获取fid
|
||||
https://drive-pc.quark.cn/1/clouddrive/share/sharepage/detail?pr=ucpro&fr=pc&pwd_id=8f816f506409&stoken=TMJG1MBehHvDvuZgVZ%2FazmtOi0rGiw2v1O6%2FKCQwu%2Bc%3D&pdir_fid=0&force=0&_page=1&_size=50&_fetch_banner=1&_fetch_share=1&_fetch_total=1&_sort=file_type:asc,updated_at:desc
|
||||
|
||||
|
||||
|
||||
@@ -20,13 +20,19 @@ custom:
|
||||
- .*/test.*$
|
||||
entityPackagesReg:
|
||||
- ^cn\.qaiu\.lz\.web\.model\..*
|
||||
otherConfig:
|
||||
- dictionaries.json
|
||||
errorPage404: /index.html
|
||||
indexPage: /test2
|
||||
sharedLogin: true
|
||||
lzConfig:
|
||||
config: '111'
|
||||
|
||||
dataSource:
|
||||
provider_class: io.vertx.ext.jdbc.spi.impl.HikariCPDataSourceProvider
|
||||
jdbcUrl: jdbc:h2:tcp://127.0.0.1:9095/./db/myData;MODE=MySQL;DATABASE_TO_LOWER=FALSE
|
||||
driverClassName: org.h2.Driver
|
||||
username: root
|
||||
password: '123456'
|
||||
tableClassPath: cn.qaiu.lz.web.model
|
||||
|
||||
cowConfig:
|
||||
config: '111'
|
||||
|
||||
Reference in New Issue
Block a user