mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
commit
7e220f5be7
BIN
.github/download.png
vendored
Normal file
BIN
.github/download.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 185 KiB |
BIN
.github/menu.png
vendored
Normal file
BIN
.github/menu.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
BIN
.github/nodejs.png
vendored
Normal file
BIN
.github/nodejs.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 333 KiB |
BIN
.github/shezhi_renwu.png
vendored
Normal file
BIN
.github/shezhi_renwu.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
BIN
.github/start_renwu.png
vendored
Normal file
BIN
.github/start_renwu.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 157 KiB |
BIN
.github/step_menu.png
vendored
Normal file
BIN
.github/step_menu.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
103
README.md
103
README.md
@ -236,6 +236,109 @@ Chrome浏览器:
|
||||
由于Github服务器共用IP导致脚本易发生访问频繁, 且滥用行为可能会封禁Actions可选择在本地运行
|
||||
具体操作详见[env.example.bat](env.example.bat)文件
|
||||
|
||||
win系统环境配置及定时计划运行
|
||||
|
||||
step1:环境配置
|
||||
|
||||
下载代码到本地
|
||||
|
||||
[点此下载](https://github.com/shanmite/LotteryAutoScript/archive/refs/heads/main.zip)或如图示下载↓
|
||||
|
||||

|
||||
|
||||
下载的压缩包解压后修改env.example.bat文件,详见step3
|
||||
|
||||
step2:下载并安装Node.js
|
||||
|
||||
[点此进入nodejs下载页面](http://nodejs.cn/download)
|
||||
|
||||

|
||||
|
||||
step3:修改env.example.bat文件及创建运行文件
|
||||
|
||||
1.step1下载的压缩包解压后将其中的`env.example.bat`文件重命名为`env.bat`
|
||||
|
||||
2.右键`env.bat`文件选择编辑或用记事本打开
|
||||
|
||||
3.使用 -[填入COOKIE](#填入cookie) 操作获取cookie,将字段其中包含`%`的修改成`%%`,多输入一个`%`避免转义
|
||||
|
||||
4.将cookie填入文件对应值中
|
||||
|
||||
```
|
||||
set COOKIE= 你在浏览器获取后并修改了%的cookie
|
||||
…………
|
||||
(后面的按照文件中的提示填写)
|
||||
```
|
||||
|
||||
5.在`env.bat`文件同一根目录下新建一个`start.bat`文件,用于运行程序
|
||||
|
||||

|
||||
|
||||
6.右键`start.bat`文件选择编辑或用记事本打开,填入以下内容(内容具体含义详见`env.bat`文件,可根据个人需求选择其中一条)
|
||||
|
||||
```
|
||||
npm run test_start
|
||||
```
|
||||
或
|
||||
```
|
||||
npm run test_check
|
||||
```
|
||||
或
|
||||
```
|
||||
npm run test_clear
|
||||
```
|
||||
|
||||
8.确入修改无误后,将`env.bat`文件中前面含有`::`的注释全部删除,只保留`chcp 65001`语句和含有前缀`set`的语句
|
||||
|
||||
9.上一步操作仍可能无法修改默认编码,此时可以去搜索引擎搜索永久修改cmd默认编码为`65001`的方法,这里不赘述了
|
||||
|
||||
10.以上修改都保存成功后,点击`start.bat`文件即可启动
|
||||
|
||||
11.注意事项
|
||||
|
||||
```
|
||||
运行成功后在lib文件夹下会生成一个GlobalVar.json文件和dyid.txt文件
|
||||
==换env.bat的参数时须先将GlobalVar.json文件删除==
|
||||
==注意运行时请去掉注释==
|
||||
==注意 bat文件中% 要转义写为 %%==
|
||||
如果要运行多账号只能复制本项目并依次独立运行
|
||||
在lib/Public.js文件getLotteryInfoByTag方法和getLotteryInfoByUID方法中可适当增大扫描范围 默认3页
|
||||
```
|
||||
|
||||
step4:本地定时运行(在Windows系统的操作)
|
||||
|
||||
1.右键我的电脑打开控制面板,或在win10搜索框里搜索控制面板打开
|
||||
|
||||
2.在`控制面板`右上角的搜索框里搜索`计划任务`点击打开
|
||||
|
||||
3.在`任务计划程序`中选择`任务计划程序库`
|
||||
|
||||
4.在右边的操作框中选择`创建任务`
|
||||
|
||||
5.在`常规`页面中的名称框中写入计划名称后,在`安全选项`里选择`不管用户是否登陆都要运行`,`使用最高权限运行`
|
||||
|
||||
6.在`触发器`页面中规划时间,点击`新建`,选择设置`每天`和具体开始时间以及间隔时间,高级设置直接看情况选择
|
||||
|
||||
7.在`操作`页面中点击`新建`,选择操作为`启动程序`,在设置里点击浏览找到`start.bat`文件并选择,在`起始于(可选)(T):`中的空白框里输入`start.bat`文件的目录地址,也就是`程序或脚本(P):`里`start.bat`的前面那一串目录地址,最后是以`\`结尾的 ,填好东西后按下面`确认`
|
||||
|
||||

|
||||
|
||||
8.在`条件`页面中选择`网络`,设定启动条件为任何连接
|
||||
|
||||
9.在`设置`页面中选择如图示选项,或者不修改默认设置
|
||||
|
||||

|
||||
|
||||
10.最后按`确定`
|
||||
|
||||
11.此时它会弹框要求输入用户密码,一般是你的开机密码确认身份,这个对于服务器来说就是远程桌面开启的那个密码
|
||||
|
||||
最后你可以在任务列表中选择已有的任务,右边的操作框中选择`运行`点击,启动计划的任务,如下图所示
|
||||
|
||||

|
||||
|
||||
具体看任务是否正常执行,你可以看看自己的账号动态的最新转发,运行成功每几分钟自动转发抽奖动态
|
||||
|
||||
### 多账号支持
|
||||
默认支持5个账号
|
||||
| cookies | value |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user