Skip to content

Commit 8cec41c

Browse files
author
Taois
committed
feat: 发布新版本,RSA极致优化
1 parent 88d713c commit 8cec41c

File tree

9 files changed

+442
-78
lines changed

9 files changed

+442
-78
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,4 @@ dist
157157
/apps/cat/
158158
/data/temp/
159159
/scripts/mjs/index.db
160+
/scripts/test/rsa-test.json

README.md

Lines changed: 5 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ nodejs作为服务端的drpy实现。全面升级异步写法
5454

5555
## 更新记录
5656

57+
### 20251014
58+
59+
更新至V1.3.12
60+
5761
### 20251013
5862

5963
更新至V1.3.11
@@ -62,57 +66,6 @@ nodejs作为服务端的drpy实现。全面升级异步写法
6266

6367
更新至V1.3.10
6468

65-
### 20251010
66-
67-
更新至V1.3.9
68-
69-
### 20251008
70-
71-
更新至V1.3.8
72-
73-
### 20251007
74-
75-
更新至V1.3.7
76-
77-
### 20250927
78-
79-
更新至V1.3.6
80-
81-
### 20250925
82-
83-
更新至V1.3.5
84-
85-
### 20250919
86-
87-
更新至V1.3.4
88-
89-
### 20250918
90-
91-
更新至V1.3.3
92-
93-
### 20250916
94-
95-
更新至V1.3.2
96-
97-
### 20250914
98-
99-
更新至V1.3.1
100-
101-
框架已完成,预留0.1%进度修bug
102-
103-
### 20250913
104-
105-
更新至V1.2.30
106-
107-
### 20250911
108-
109-
更新至V1.2.29
110-
完美dr2模板源适配
111-
112-
### 20250910
113-
114-
更新至V1.2.28
115-
11669
[点此查看完整更新记录](docs/updateRecord.md)
11770

11871
**注意事项**
@@ -213,6 +166,7 @@ pm2 restart drpys
213166
* [ZY写源教学](https://zy.catni.cn/editSource/edit-grammar.html)
214167
* [源动力-新](https://tvshare.cn/)
215168
* [源动力-老](https://sourcepower.top/index)
169+
* [电竞专业反应测试](https://www.arealme.com/brain-memory-game/zh/)
216170

217171
## AI接入
218172

docs/pyenv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# windows
55
pip install -r spider/py/base/requirements.txt -i https://mirrors.cloud.tencent.com/pypi/simple
66
# linux
7-
pip3 install -r spider/py/base/requirements.txt -i https://mirrors.cloud.tencent.com/pypi/simple
7+
pip3 install --break-system-packages -r spider/py/base/requirements.txt -i https://mirrors.cloud.tencent.com/pypi/simple
88
```
99

1010
# golang二进制文件

docs/updateRecord.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# drpyS更新记录
22

3+
### 20251014
4+
5+
更新至V1.3.12
6+
7+
内置RSA极限优化
8+
9+
1. 将原本ds内置的 `RSA` 替换成一个更快的实现,一端json长文本解密从 `480ms` 减少到 `44ms`
10+
2. 更新pyenv搭建说明
11+
312
### 20251013
413

514
更新至V1.3.11

libs_drpy/drpyCustom.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import './_dist/node-rsa.js';
88
import './_dist/gb18030.js';
99
import './_dist/json5.js';
1010

11+
// 导入RSA,这样文件内部也可以使用
12+
import {RSA} from './drpyRsa.js';
13+
// 重新导出RSA供其他模块使用
14+
export {RSA};
15+
1116
// User Agent 常量
1217
export const MOBILE_UA = 'Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36';
1318
export const PC_UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36';
@@ -278,6 +283,7 @@ export const decodeStr = (input, encoding = 'gbk') => {
278283
*/
279284
export const getCryptoJS = () => 'log("CryptoJS已装载");';
280285

286+
/*
281287
// 封装的RSA加解密类
282288
export const RSA = {
283289
decode(data, key, option = {}) {
@@ -316,6 +322,7 @@ export const RSA = {
316322
return this.fixKey(key, prefix, endfix);
317323
}
318324
};
325+
*/
319326

320327
/**
321328
* 智能对比去除广告。支持嵌套m3u8。只需要传入播放地址

0 commit comments

Comments
 (0)