错误修正
This commit is contained in:
parent
fc27e3f73e
commit
b1f50c4c45
16
config.py
16
config.py
@ -13,7 +13,7 @@ mihoyobbs_Cookies = ""
|
|||||||
#这个dist里面的内容和米游社有关
|
#这个dist里面的内容和米游社有关
|
||||||
mihoyobbs = {
|
mihoyobbs = {
|
||||||
#全局开关,关闭之后下面的都不执行
|
#全局开关,关闭之后下面的都不执行
|
||||||
"bbs_Gobal": True,
|
"bbs_Global": True,
|
||||||
#讨论区签到
|
#讨论区签到
|
||||||
"bbs_Singin": True,
|
"bbs_Singin": True,
|
||||||
#多个讨论区签到
|
#多个讨论区签到
|
||||||
@ -33,9 +33,9 @@ mihoyobbs = {
|
|||||||
"bbs_Share": True,
|
"bbs_Share": True,
|
||||||
}
|
}
|
||||||
#原神自动签到
|
#原神自动签到
|
||||||
genshin_AutoSingin = True
|
genshin_Auto_sing = True
|
||||||
#崩坏3自动签到
|
#崩坏3自动签到
|
||||||
honkai3rd_AutoSing = True
|
honkai3rd_Auto_sing = True
|
||||||
|
|
||||||
path = os.path.dirname(os.path.realpath(__file__)) + "/config"
|
path = os.path.dirname(os.path.realpath(__file__)) + "/config"
|
||||||
config_Path = f"{path}/config.json"
|
config_Path = f"{path}/config.json"
|
||||||
@ -49,14 +49,14 @@ def Load_config():
|
|||||||
global mihoyobbs_Stoken
|
global mihoyobbs_Stoken
|
||||||
global mihoyobbs_Cookies
|
global mihoyobbs_Cookies
|
||||||
global mihoyobbs
|
global mihoyobbs
|
||||||
global genshin_AutoSingin
|
global genshin_Auto_sing
|
||||||
global honkai3rd_AutoSing
|
global honkai3rd_Auto_sing
|
||||||
enable_Config = data["enable_Config"]
|
enable_Config = data["enable_Config"]
|
||||||
mihoyobbs_Login_ticket = data["mihoyobbs_Login_ticket"]
|
mihoyobbs_Login_ticket = data["mihoyobbs_Login_ticket"]
|
||||||
mihoyobbs_Stuid = data["mihoyobbs_Stuid"]
|
mihoyobbs_Stuid = data["mihoyobbs_Stuid"]
|
||||||
mihoyobbs_Stoken = data["mihoyobbs_Stoken"]
|
mihoyobbs_Stoken = data["mihoyobbs_Stoken"]
|
||||||
mihoyobbs_Cookies = data["mihoyobbs_Cookies"]
|
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"] = data["mihoyobbs"]["bbs_Singin"]
|
||||||
mihoyobbs["bbs_Singin_multi"] = data["mihoyobbs"]["bbs_Singin_multi"]
|
mihoyobbs["bbs_Singin_multi"] = data["mihoyobbs"]["bbs_Singin_multi"]
|
||||||
mihoyobbs["bbs_Singin_multi_list"] = data["mihoyobbs"]["bbs_Singin_multi_list"]
|
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_Like_posts"] = data["mihoyobbs"]["bbs_Like_posts"]
|
||||||
mihoyobbs["bbs_Unlike"] = data["mihoyobbs"]["bbs_Unlike"]
|
mihoyobbs["bbs_Unlike"] = data["mihoyobbs"]["bbs_Unlike"]
|
||||||
mihoyobbs["bbs_Share"] = data["mihoyobbs"]["bbs_Share"]
|
mihoyobbs["bbs_Share"] = data["mihoyobbs"]["bbs_Share"]
|
||||||
genshin_AutoSingin = data["genshin_AutoSingin"]
|
genshin_Auto_sing = data["genshin_Auto_sing"]
|
||||||
honkai3rd_AutoSing = data["honkai3rd_AutoSing"]
|
honkai3rd_Auto_sing = data["honkai3rd_Auto_sing"]
|
||||||
f.close()
|
f.close()
|
||||||
tools.log.info("Config加载完毕")
|
tools.log.info("Config加载完毕")
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"enable_Config": true,
|
"enable_Config": true,
|
||||||
"config_Version": 2,
|
"config_Version": 3,
|
||||||
"mihoyobbs_Login_ticket": "",
|
"mihoyobbs_Login_ticket": "",
|
||||||
"mihoyobbs_Stuid": "",
|
"mihoyobbs_Stuid": "",
|
||||||
"mihoyobbs_Stoken": "",
|
"mihoyobbs_Stoken": "",
|
||||||
"mihoyobbs_Cookies": "",
|
"mihoyobbs_Cookies": "",
|
||||||
"mihoyobbs": {
|
"mihoyobbs": {
|
||||||
"bbs_Gobal": true,
|
"bbs_Global": true,
|
||||||
"bbs_Singin": true,
|
"bbs_Singin": true,
|
||||||
"bbs_Singin_multi": true,
|
"bbs_Singin_multi": true,
|
||||||
"bbs_Singin_multi_list": [2, 5],
|
"bbs_Singin_multi_list": [2, 5],
|
||||||
@ -15,6 +15,6 @@
|
|||||||
"bbs_Unlike": true,
|
"bbs_Unlike": true,
|
||||||
"bbs_Share": true
|
"bbs_Share": true
|
||||||
},
|
},
|
||||||
"genshin_AutoSingin": true,
|
"genshin_Auto_sing": true,
|
||||||
"honkai3rd_AutoSing": false
|
"honkai3rd_Auto_sing": false
|
||||||
}
|
}
|
2
main.py
2
main.py
@ -33,7 +33,7 @@ def main():
|
|||||||
if int(i["id"]) == 5:
|
if int(i["id"]) == 5:
|
||||||
setting.mihoyobbs_List_Use.append(i)
|
setting.mihoyobbs_List_Use.append(i)
|
||||||
#米游社签到
|
#米游社签到
|
||||||
if config.mihoyobbs["bbs_Gobal"] == True:
|
if config.mihoyobbs["bbs_Global"] == True:
|
||||||
bbs = mihoyobbs.mihoyobbs()
|
bbs = mihoyobbs.mihoyobbs()
|
||||||
if config.mihoyobbs["bbs_Singin"] == True:
|
if config.mihoyobbs["bbs_Singin"] == True:
|
||||||
bbs.Singin()
|
bbs.Singin()
|
||||||
|
Loading…
Reference in New Issue
Block a user