Skip to content

Commit c9db458

Browse files
authored
Merge pull request #10 from GOOD-AN/dev
fix: 修复错误
2 parents 90a2073 + dd800c2 commit c9db458

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

config/config.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
name = Mys_Exch_Goods
33
env = local
44
branch = main
5-
version = 2.0.3
5+
version = 2.0.4
66

77
[user_info]
88
cookie =
99
uid =
10-
address_id =
10+
address_id =
11+
game_uid =
1112

1213
[exchange_info]
1314
good_id =

docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# 更新日志
22

3+
## [2.0.4.221117 Alpha] - 2022-11-17
4+
5+
### Fixed
6+
- 修复配置文件错误
7+
- 修复时间读取错误
8+
39
## [2.0.3.221116 Alpha] - 2022-11-16
410

511
### Added

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from plugin import info_main, gift_main, config_main
1212
import tools.global_var as gl
1313

14-
MAIN_VERSION = '2.0.3'
14+
MAIN_VERSION = '2.0.4'
1515
MESSAGE = f"""\
1616
===========================================
1717
| Mys Exchange Goods v{MAIN_VERSION} |

plugin/other_config.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ def set_exchange_time():
5252
system(gl.CLEAR_TYPE)
5353
config_time = gl.INI_CONFIG.get('exchange_info', 'time')
5454
if config_time:
55-
now_time = strftime("%Y年%m月%d日 %H:%M:%S", strptime(config_time, "%Y-%m-%d %H:%M:%S"))
56-
print(f"当前商品兑换时间为: {now_time}")
55+
try:
56+
now_time = strftime("%Y年%m月%d日 %H:%M:%S", strptime(config_time, "%Y-%m-%d %H:%M:%S"))
57+
print(f"当前商品兑换时间为: {now_time}")
58+
except ValueError:
59+
print(f"当前商品兑换时间为: {config_time}")
5760
choice = input(f"是否修改(默认为Y)(Y/N): ")
5861
if choice in ('n', 'N'):
5962
return True

update_log.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"least_version": "2.0.3",
3-
"last_version": "2.0.3",
2+
"least_version": "2.0.4",
3+
"last_version": "2.0.4",
44
"update_log":[
55
{
66
"version": "1.0.0",
@@ -41,6 +41,11 @@
4141
"version": "2.0.3",
4242
"update_time": "2022-11-16",
4343
"update_content": ["1.修改部分目录结构", "2.添加其他配置设置", "3.添加欢迎语"]
44+
},
45+
{
46+
"version": "2.0.4",
47+
"update_time": "2022-11-17",
48+
"update_content": ["1.修复配置文件错误", "2.修复时间读取错误"]
4449
}
4550
]
4651
}

0 commit comments

Comments
 (0)