Skip to content

Commit 9f1e404

Browse files
committed
update: 修正错误变量命
1 parent 32c1982 commit 9f1e404

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@
1313

1414
[user_info]
1515

16-
| 参数 | 说明 |
17-
|------------|----------------------------------------------|
18-
| cookie | 用户`cookie`数据 |
16+
| 参数 | 说明 |
17+
|------------|--------------------------------------|
18+
| cookie | 用户`cookie`数据 |
1919
| uid | 用户游戏内UID, 填写为需要兑换的游戏商品对应的UID, 暂只支持一个 |
20-
| address_id | 用户收货地址ID |
20+
| address_id | 用户收货地址ID |
2121

2222
[exchange_info]
2323

24-
| 参数 | 说明 |
25-
|---------|------------------|
26-
| good_id | 需要兑换的商品ID |
27-
| time | 兑换商品的开始时间, 需手动填写 |
28-
| thread | 每个商品同时请求兑换的线程数, 需手动填写 |
29-
| retry | 请求时重试次数, 需手动填写 |
24+
| 参数 | 说明 |
25+
|---------|-----------------------|
26+
| good_id | 需要兑换的商品ID |
27+
| time | 兑换商品的开始时间, 需手动填写 |
28+
| thread | 每个商品同时请求兑换的线程数, 需手动填写 |
29+
| retry | 请求时重试次数, 需手动填写 |
3030

3131
[check_network]
3232

33-
| 参数 | 说明 |
34-
|---------------|---------------------|
33+
| 参数 | 说明 |
34+
|---------------|----------------------------|
3535
| enable | 是否启用网络检查, 需手动填写 |
3636
| interval_time | 检查间隔, 单位 秒, 需手动填写 |
3737
| stop_time | 距开始兑换多长时间停止检查, 单位 秒, 需手动填写 |
3838

3939
[ntp]
4040

41-
| 参数 | 说明 |
42-
|------------|----------|
41+
| 参数 | 说明 |
42+
|------------|-----------------|
4343
| enable | 是否启用ntp, 需手动填写 |
4444
| ntp_server | ntp对时服务器, 需手动填写 |
4545

tools/com_tool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ def check_update():
134134
return False
135135
remote_least_version = check_info['least_version'].split('.')
136136
local_version = MAIN_VERSION.split('.')
137-
remote_last_vesion = check_info['last_vesion'].split('.')
138-
if compare_version(local_version, remote_last_vesion) == -1:
137+
remote_last_version = check_info['last_version'].split('.')
138+
if compare_version(local_version, remote_last_version) == -1:
139139
remote_update_log_list = check_info['update_log']
140-
print(f"当前程序版本为v{MAIN_VERSION}, 最新程序版本为v{check_info['last_vesion']}")
140+
print(f"当前程序版本为v{MAIN_VERSION}, 最新程序版本为v{check_info['last_version']}")
141141
print("当前非最新版本,建议更新\n")
142142
print("更新概览: ")
143143
print("=" * 50)

tools/mi_tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ def get_point():
105105
"""
106106
try:
107107
point_url = gl.BBS_URL + '/apihub/sapi/getUserMissionsState'
108-
point_hearders = {
108+
point_headers = {
109109
'Cookie': gl.MI_COOKIE,
110110
}
111-
point_req = requests.get(point_url, headers=point_hearders)
111+
point_req = requests.get(point_url, headers=point_headers)
112112
if point_req.status_code != 200:
113113
print(f"获取米游币数量失败, 返回状态码为{point_req.status_code}")
114114
input("按回车键继续")

update_log.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"least_version": "2.0.0",
3-
"last_vesion": "2.0.0",
3+
"last_version": "2.0.0",
44
"update_log":[
55
{
66
"version": "1.0.0",

0 commit comments

Comments
 (0)