feat(xuequ): 添加携趣白名单切换脚本

- 新增 switch.js 脚本,用于自动切换携趣代理的白名单IP
- 支持多账户和多IP配置,通过环境变量 XQ_ACCOUNTS 和 XQ_WHITELIST 设置
- 实现获取当前白名单、删除所有白名单、选择剩余次数最多的账户并添加新白名单的功能
- 集成定时任务,可通过 cron 表达式设置执行时间
- 添加详细的日志输出和错误处理机制
This commit is contained in:
2025-11-02 17:16:09 +08:00
commit 625a6ea2f9
7 changed files with 1873 additions and 0 deletions

33
package.json Normal file
View File

@@ -0,0 +1,33 @@
{
"name": "ql-scripts",
"version": "1.0.0",
"description": "青龙面板脚本库 - 自动化任务脚本集合",
"main": "index.js",
"scripts": {
"start": "node index.js",
"dev": "npx env-cmd -f .env.local node ./xuequ/switch.js",
"test": "jest",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write ."
},
"keywords": [
"青龙面板",
"qinglong",
"scripts",
"automation",
"cron",
"task"
],
"author": "@ZhuHJay",
"license": "MIT",
"volta": {
"node": "18.20.4"
},
"dependencies": {
"node-fetch": "^2.7.0"
},
"devDependencies": {
"env-cmd": "^11.0.0"
}
}