Skip to content

Commit 4973de3

Browse files
update version 1.2.002
1 parent 9d70f83 commit 4973de3

File tree

11 files changed

+2345
-1807
lines changed

11 files changed

+2345
-1807
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
# 可以配置server酱提醒(推荐)[配置教程](https://www.jianshu.com/p/8d10b5b9c4e3)
4343
# 用python3 还是python 完全取决于安装的时候配置的环境变量是否为python3,以下启动默认环境变量为python3
4444
python3 run.py t
45-
4645
```
4746
- 配置[配置](TickerConfig.py)文件的时候,需注意空格和遵循python语法格式
4847
- 启动前请先筛选cdn,这点很`重要`
@@ -62,8 +61,6 @@
6261
6362
positional arguments:
6463
operate r: 运行抢票程序, c: 过滤cdn, t: 测试邮箱和server酱,server酱
65-
66-
6764
```
6865
- 如果你的服务器安装了docker与docker-compose, 那么就可以通过`docker-compose`进行启动,`docker.sh`脚本对此进行了封装,可以通过如下命令进行启动
6966
- 1、`sudo ./docker.sh run` #创建一个镜像并启动容器,如果镜像已经创建过了会直接启动容器。

TickerConfig.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@
126126
CHROME_CHROME_PATH = "/opt/google/chrome/google-chrome"
127127

128128
# 如果COOKIE_TYPE=3, 则需配置RAIL_EXPIRATION、RAIL_DEVICEID的值
129-
RAIL_EXPIRATION = "1576654754825"
130-
RAIL_DEVICEID = "iIT4N7T5eI7O26P1vMt3oCLWvjlt4O9_ONCjqrKQPkChXEhGnMWKzD7wRJdc-C_1RYHw66659vxUwVxLeyh1MBgR3nf-2sW44mLg7ZMdE2CskpVx0LBsaIjVkQBsjyNH-Gi1lb45BiGGokq_zJUkFubcmj9pSAUu"
129+
RAIL_EXPIRATION = ""
130+
RAIL_DEVICEID = ""
131131

132132

133133
# 1=>为一直随机ua,2->只启动的时候随机一次ua
@@ -152,4 +152,4 @@
152152
MIN_TIME = 3
153153

154154
# 软件版本
155-
RE_VERSION = "1.2.001"
155+
RE_VERSION = "1.2.002"

agency/cdn_utils.py

100755100644
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ def filterCdn():
7171

7272
print(f"当前有效cdn个数为: {len(cdn_list)}")
7373
if cdn_list:
74-
f = open(r"../filter_cdn_list", "a+")
74+
path = os.path.join(os.path.dirname(__file__), f'../filter_cdn_list')
75+
f = open(path, "a+")
76+
f.seek(0)
77+
f.truncate()
78+
f.writelines("")
7579
for c in cdn_list:
7680
f.writelines(f"{c}\n")
7781
f.close()

0 commit comments

Comments
 (0)