v1.0: 重写核心代码,清理空壳脚本

- 重写 ticket_script.py: 状态机、完整的选票/下单流程、反检测
- 重写 scripts/: 验证码处理、定时调度、NTP校时、多账户管理
- 删除空壳 appium_simulator.py
- 清理配置文件中的硬编码密码
- 重写 README,去除虚假宣传
This commit is contained in:
zhaojie
2026-04-01 15:24:34 +08:00
commit b711b98dc8
11 changed files with 1371 additions and 0 deletions

13
config/config.json Normal file
View File

@@ -0,0 +1,13 @@
{
"date": [1, 2, 3],
"sess": [1, 2],
"price": [1, 2, 3],
"ticket_num": 2,
"viewer_person": [1, 2],
"nick_name": "",
"driver_path": "/usr/local/bin/chromedriver",
"damai_url": "https://www.damai.cn/",
"target_url": "https://m.damai.cn/damai/detail/item.html?itemId=714001339730",
"max_retries": 180,
"retry_delay": 0.3
}

32
config/demo_config.json Normal file
View File

@@ -0,0 +1,32 @@
{
"version": "1.0",
"global": {
"log_level": "INFO",
"timezone": "Asia/Shanghai"
},
"accounts": {
"acc_primary": {
"platform": "taopiaopiao",
"credentials": {
"mobile": "138xxxxxxxx",
"password": ""
},
"target": {
"event_url": "https://example.com/detail/987654321",
"priorities": {
"date": [1, 2],
"session": [1],
"price_range": "lowest_to_highest"
},
"tickets": 2,
"viewers": [0, 1]
}
}
},
"strategy": {
"auto_strike": true,
"strike_time": "2026-01-25T12:00:00",
"preheat_stages": [5.0, 2.0, 0.5],
"max_retries": 180
}
}

View File

@@ -0,0 +1,20 @@
{
"platforms": {
"damai": {
"platform_name": "大麦网",
"login_url": "https://www.damai.cn/login",
"login_method": "scan",
"mobile_url": "https://m.damai.cn/"
},
"taopiaopiao": {
"platform_name": "淘票票",
"login_url": "https://m.taopiaopiao.com/",
"login_method": "sms"
},
"showstart": {
"platform_name": "秀动",
"login_url": "https://www.showstart.com/",
"login_method": "scan"
}
}
}