mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🔧 chore: 清理引用
- 引入child_process和qrcode模块 - 更新bilibili.js文件,增加exec和spawn的引用 - 更新tools.js文件,优化API列表格式 - 更新query.js文件,移除不必要的http库引用 - 更新common.js文件,修正urlTransformShortLink函数中的URL编码问题 BREAKING CHANGE: 引入新的模块和API,可能影响现有功能
This commit is contained in:
parent
a38ef04d27
commit
c61b520222
@ -1,5 +1,3 @@
|
|||||||
// 主库
|
|
||||||
// http库
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
import fetch from "node-fetch";
|
import fetch from "node-fetch";
|
||||||
|
@ -41,7 +41,9 @@ import {
|
|||||||
MIYOUSHE_ARTICLE,
|
MIYOUSHE_ARTICLE,
|
||||||
NETEASE_API_CN,
|
NETEASE_API_CN,
|
||||||
NETEASE_SONG_DOWNLOAD,
|
NETEASE_SONG_DOWNLOAD,
|
||||||
NETEASE_TEMP_API, PearAPI_CRAWLER, PearAPI_DEEPSEEK,
|
NETEASE_TEMP_API,
|
||||||
|
PearAPI_CRAWLER,
|
||||||
|
PearAPI_DEEPSEEK,
|
||||||
QISHUI_MUSIC_TEMP_API,
|
QISHUI_MUSIC_TEMP_API,
|
||||||
QQ_MUSIC_TEMP_API,
|
QQ_MUSIC_TEMP_API,
|
||||||
TWITTER_TWEET_INFO,
|
TWITTER_TWEET_INFO,
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
import fs from "node:fs";
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
import { exec, spawn } from 'child_process';
|
||||||
import child_process from 'node:child_process'
|
import child_process from 'node:child_process'
|
||||||
import util from "util";
|
import fs from "node:fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
import qrcode from "qrcode"
|
||||||
|
import util from "util";
|
||||||
import {
|
import {
|
||||||
BILI_BVID_TO_CID,
|
BILI_BVID_TO_CID,
|
||||||
BILI_DYNAMIC,
|
BILI_DYNAMIC,
|
||||||
@ -12,8 +14,6 @@ import {
|
|||||||
BILI_VIDEO_INFO
|
BILI_VIDEO_INFO
|
||||||
} from "../constants/tools.js";
|
} from "../constants/tools.js";
|
||||||
import { mkdirIfNotExists } from "./file.js";
|
import { mkdirIfNotExists } from "./file.js";
|
||||||
import { exec, spawn } from 'child_process';
|
|
||||||
import qrcode from "qrcode"
|
|
||||||
|
|
||||||
export const BILI_HEADER = {
|
export const BILI_HEADER = {
|
||||||
'User-Agent':
|
'User-Agent':
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { exec } from "child_process";
|
import { exec } from "child_process";
|
||||||
import https from 'https';
|
|
||||||
import { HttpsProxyAgent } from 'https-proxy-agent';
|
import { HttpsProxyAgent } from 'https-proxy-agent';
|
||||||
import fetch from "node-fetch";
|
import fetch from "node-fetch";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user