From b1f50c4c45b037933446d5b1e2c122b35bfb99f3 Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Sun, 6 Jun 2021 21:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 16 ++++++++-------- config/config.json.example | 8 ++++---- main.py | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/config.py b/config.py index a406f14..be6de88 100644 --- a/config.py +++ b/config.py @@ -13,7 +13,7 @@ mihoyobbs_Cookies = "" #这个dist里面的内容和米游社有关 mihoyobbs = { #全局开关,关闭之后下面的都不执行 - "bbs_Gobal": True, + "bbs_Global": True, #讨论区签到 "bbs_Singin": True, #多个讨论区签到 @@ -33,9 +33,9 @@ mihoyobbs = { "bbs_Share": True, } #原神自动签到 -genshin_AutoSingin = True +genshin_Auto_sing = True #崩坏3自动签到 -honkai3rd_AutoSing = True +honkai3rd_Auto_sing = True path = os.path.dirname(os.path.realpath(__file__)) + "/config" config_Path = f"{path}/config.json" @@ -49,14 +49,14 @@ def Load_config(): global mihoyobbs_Stoken global mihoyobbs_Cookies global mihoyobbs - global genshin_AutoSingin - global honkai3rd_AutoSing + global genshin_Auto_sing + global honkai3rd_Auto_sing enable_Config = data["enable_Config"] mihoyobbs_Login_ticket = data["mihoyobbs_Login_ticket"] mihoyobbs_Stuid = data["mihoyobbs_Stuid"] mihoyobbs_Stoken = data["mihoyobbs_Stoken"] mihoyobbs_Cookies = data["mihoyobbs_Cookies"] - mihoyobbs["bbs_Gobal"] = data["mihoyobbs"]["bbs_Gobal"] + mihoyobbs["bbs_Gobal"] = data["mihoyobbs"]["bbs_Global"] mihoyobbs["bbs_Singin"] = data["mihoyobbs"]["bbs_Singin"] mihoyobbs["bbs_Singin_multi"] = data["mihoyobbs"]["bbs_Singin_multi"] mihoyobbs["bbs_Singin_multi_list"] = data["mihoyobbs"]["bbs_Singin_multi_list"] @@ -64,8 +64,8 @@ def Load_config(): mihoyobbs["bbs_Like_posts"] = data["mihoyobbs"]["bbs_Like_posts"] mihoyobbs["bbs_Unlike"] = data["mihoyobbs"]["bbs_Unlike"] mihoyobbs["bbs_Share"] = data["mihoyobbs"]["bbs_Share"] - genshin_AutoSingin = data["genshin_AutoSingin"] - honkai3rd_AutoSing = data["honkai3rd_AutoSing"] + genshin_Auto_sing = data["genshin_Auto_sing"] + honkai3rd_Auto_sing = data["honkai3rd_Auto_sing"] f.close() tools.log.info("Config加载完毕") diff --git a/config/config.json.example b/config/config.json.example index 0d85555..a47765e 100644 --- a/config/config.json.example +++ b/config/config.json.example @@ -1,12 +1,12 @@ { "enable_Config": true, - "config_Version": 2, + "config_Version": 3, "mihoyobbs_Login_ticket": "", "mihoyobbs_Stuid": "", "mihoyobbs_Stoken": "", "mihoyobbs_Cookies": "", "mihoyobbs": { - "bbs_Gobal": true, + "bbs_Global": true, "bbs_Singin": true, "bbs_Singin_multi": true, "bbs_Singin_multi_list": [2, 5], @@ -15,6 +15,6 @@ "bbs_Unlike": true, "bbs_Share": true }, - "genshin_AutoSingin": true, - "honkai3rd_AutoSing": false + "genshin_Auto_sing": true, + "honkai3rd_Auto_sing": false } \ No newline at end of file diff --git a/main.py b/main.py index d6e4989..80f68ae 100644 --- a/main.py +++ b/main.py @@ -33,7 +33,7 @@ def main(): if int(i["id"]) == 5: setting.mihoyobbs_List_Use.append(i) #米游社签到 - if config.mihoyobbs["bbs_Gobal"] == True: + if config.mihoyobbs["bbs_Global"] == True: bbs = mihoyobbs.mihoyobbs() if config.mihoyobbs["bbs_Singin"] == True: bbs.Singin()