Skip to content

Commit

Permalink
update version 1.2.002
Browse files Browse the repository at this point in the history
  • Loading branch information
testerSunshine committed Dec 18, 2019
1 parent 9d70f83 commit 4973de3
Show file tree
Hide file tree
Showing 11 changed files with 2,345 additions and 1,807 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
# 可以配置server酱提醒(推荐)[配置教程](https://www.jianshu.com/p/8d10b5b9c4e3)
# 用python3 还是python 完全取决于安装的时候配置的环境变量是否为python3,以下启动默认环境变量为python3
python3 run.py t
```
- 配置[配置](TickerConfig.py)文件的时候,需注意空格和遵循python语法格式
- 启动前请先筛选cdn,这点很`重要`
Expand All @@ -62,8 +61,6 @@
positional arguments:
operate r: 运行抢票程序, c: 过滤cdn, t: 测试邮箱和server酱,server酱
```
- 如果你的服务器安装了docker与docker-compose, 那么就可以通过`docker-compose`进行启动,`docker.sh`脚本对此进行了封装,可以通过如下命令进行启动
- 1、`sudo ./docker.sh run` #创建一个镜像并启动容器,如果镜像已经创建过了会直接启动容器。
Expand Down
6 changes: 3 additions & 3 deletions TickerConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@
CHROME_CHROME_PATH = "/opt/google/chrome/google-chrome"

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


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

# 软件版本
RE_VERSION = "1.2.001"
RE_VERSION = "1.2.002"
6 changes: 5 additions & 1 deletion agency/cdn_utils.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ def filterCdn():

print(f"当前有效cdn个数为: {len(cdn_list)}")
if cdn_list:
f = open(r"../filter_cdn_list", "a+")
path = os.path.join(os.path.dirname(__file__), f'../filter_cdn_list')
f = open(path, "a+")
f.seek(0)
f.truncate()
f.writelines("")
for c in cdn_list:
f.writelines(f"{c}\n")
f.close()
Expand Down
Loading

0 comments on commit 4973de3

Please sign in to comment.