🐞 fix: 热修复bug

1. 热修复抖音解析问题
2. 更改一些文档
This commit is contained in:
zhiyu1998 2022-11-23 17:31:56 +08:00
parent 34824b202f
commit 99c1f2b2b1
2 changed files with 4 additions and 4 deletions

View File

@ -24,11 +24,11 @@ test -- 爬虫文件[python]
index -- 主入口 index -- 主入口
## 📔使用说明 ## 📔使用说明
1. `test -- main.py`爬取链接 1. `test -- main.py`爬取链接要有python环境
> python3 main.py > python3 main.py
2. 下载mongodb 2. 下载mongodb(可能会耗费一些时间:影响功能【#沃日吗】)
> linux系统下自己装一个mongodb上一个密码(不上有风险) > linux系统下自己装一个mongodb上一个密码(不上有风险)
3. 在`Yunzai-Bot`安装mongodb依赖 3. 在`Yunzai-Bot`安装mongodb、axios依赖
> pnpm add mongodb -w > pnpm add mongodb -w
> pnpm add axios -w > pnpm add axios -w

View File

@ -40,7 +40,7 @@ export class tools extends plugin {
// 抖音解析 // 抖音解析
async douyin(e) { async douyin(e) {
const urlRex = /(http:|https:)\/\/v.douyin.com\/[A-Za-z\\d._?%&+\-=\/#]*/g const urlRex = /(http:|https:)\/\/v.douyin.com\/[A-Za-z\d._?%&+\-=\/#]*/g
const douUrl = urlRex.exec(e.msg.trim())[0] const douUrl = urlRex.exec(e.msg.trim())[0]
await https.request(douUrl, { await https.request(douUrl, {