Skip to content

Commit d5c6a05

Browse files
author
Taois
committed
feat: 升级版本号
1 parent 2b1b127 commit d5c6a05

32 files changed

+3115
-3008
lines changed

README.md

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# drpyS(drpy-node)
22

33
nodejs作为服务端的drpy实现。全面升级异步写法
4-
~~积极开发中,每日一更~~,当前进度 `98%`
4+
~~积极开发中,每日一更~~,当前进度 `99%`
55
~~找工作中,随缘更新~~
66
上班当牛马,下班要带娃,阶段性佛系趁娃睡觉熬夜更新
77

@@ -39,6 +39,10 @@ nodejs作为服务端的drpy实现。全面升级异步写法
3939

4040
## 更新记录
4141

42+
### 20250913
43+
44+
更新至V1.2.30
45+
4246
### 20250911
4347

4448
更新至V1.2.29
@@ -48,48 +52,6 @@ nodejs作为服务端的drpy实现。全面升级异步写法
4852

4953
更新至V1.2.28
5054

51-
### 20250908
52-
53-
更新至V1.2.27
54-
55-
### 20250907
56-
57-
更新至V1.2.26
58-
59-
### 20250906
60-
61-
更新至V1.2.25
62-
63-
### 20250903
64-
65-
更新至V1.2.24
66-
67-
### 20250902
68-
69-
更新至V1.2.23
70-
71-
### 20250901
72-
73-
更新至V1.2.22
74-
75-
### 20250829
76-
77-
更新至V1.2.21
78-
79-
### 20250825
80-
81-
更新至V1.2.20
82-
83-
### 20250824
84-
85-
更新至V1.2.19
86-
87-
### 20250823
88-
89-
更新至V1.2.18
90-
91-
### 20250822
92-
9355
[点此查看完整更新记录](docs/updateRecord.md)
9456

9557
**注意事项**

apps/cookie-butler/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<li><a class="btn-scan" data-platform="uc">UC</a></li>
2323
<li><a class="btn-scan" data-platform="uc_token">UC_TOKEN</a></li>
2424
<li><a class="btn-scan" data-platform="bili">哔哩哔哩</a></li>
25+
<li><a class="btn-scan" data-platform="baidu">百度</a></li>
2526
</ul>
2627

2728
<!-- QR Code -->

apps/cookie-butler/static/js/cookie.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function showToast(message, type = 'success') {
99
toastContentEle.textContent = message;
1010
toast.className = `alert alert-${type}`;
1111
toast.style = 'display: block;'
12-
12+
1313
setTimeout(() => {
1414
toast.style = 'display: none;';
1515
toastContentEle.textContent = '';
@@ -20,7 +20,7 @@ function showToast(message, type = 'success') {
2020
// 初始化页面
2121
async function initializePage() {
2222
// 加载cookie
23-
const platforms = ['ali', 'quark', 'uc','uc_token', 'bili'];
23+
const platforms = ['ali', 'quark', 'uc', 'uc_token', 'bili', 'baidu'];
2424

2525
// 绑定按钮事件
2626
platforms.forEach(platform => {
@@ -55,6 +55,7 @@ async function initializePage() {
5555
// 扫码
5656
let pollInterval;
5757
let timeoutTimer;
58+
5859
async function scanCode(platform) {
5960
if (pollInterval) clearInterval(pollInterval);
6061
if (timeoutTimer) clearTimeout(timeoutTimer);
@@ -65,15 +66,15 @@ async function scanCode(platform) {
6566
try {
6667
// 获取二维码
6768
const qrData = await qrcode_handler.startScan(platform);
68-
69+
6970
// 显示二维码
7071
img.src = qrData.qrcode;
71-
72+
7273
// 开始轮询扫码结果
7374
pollInterval = setInterval(async () => {
7475
try {
7576
const statusData = await qrcode_handler.checkStatus(platform);
76-
switch(statusData.status) {
77+
switch (statusData.status) {
7778
case 'CONFIRMED':
7879
clearInterval(pollInterval);
7980
clearTimeout(timeoutTimer);
@@ -82,21 +83,21 @@ async function scanCode(platform) {
8283
input.value = statusData.token || statusData.cookie;
8384
showToast('扫码成功!');
8485
break;
85-
86+
8687
case 'CANCELED':
8788
clearInterval(pollInterval);
8889
clearTimeout(timeoutTimer);
8990
img.src = qrcode_expired;
9091
showToast('已取消登录', 'error');
9192
break;
92-
93+
9394
case 'EXPIRED':
9495
clearInterval(pollInterval);
9596
clearTimeout(timeoutTimer);
9697
img.src = qrcode_expired;
9798
showToast('二维码已过期,请重试', 'error');
9899
break;
99-
100+
100101
case 'SCANED':
101102
showToast('已扫码,请在手机上确认');
102103
break;
@@ -106,15 +107,15 @@ async function scanCode(platform) {
106107
img.src = qrcode_expired;
107108
showToast('检查状态失败', 'error');
108109
}
109-
}, 2000);
110-
110+
}, 4000);
111+
111112
// 30秒后超时
112113
timeoutTimer = setTimeout(() => {
113114
clearInterval(pollInterval);
114115
img.src = qrcode_expired;
115116
showToast('二维码已过期', 'error');
116117
}, 30000);
117-
118+
118119
} catch (error) {
119120
console.log(error)
120121
if (pollInterval) clearInterval(pollInterval);

0 commit comments

Comments
 (0)