From 92e1071a588b9171bd7eb0b85a3cf9e57d5eea85 Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Tue, 23 Aug 2022 23:48:58 +0800 Subject: [PATCH] fix --- genshin.py | 2 +- honkai2.py | 2 +- honkai3rd.py | 2 +- tearsofthemis.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/genshin.py b/genshin.py index 548fdb8..c602f5b 100644 --- a/genshin.py +++ b/genshin.py @@ -18,7 +18,7 @@ class Genshin: f'&act_id={setting.genshin_Act_id}&utm_source=bbs&utm_medium=mys&utm_campaign=icon' self.headers['Cookie'] = config.config["account"]["cookie"] self.headers['x-rpc-device_id'] = tools.get_device_id() - self.headers['User-Agent'] = f'{config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}' + self.headers['User-Agent'] = f'{config.config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}' self.account_list = get_account_list("hk4e_cn", self.headers) if len(self.account_list) != 0: self.checkin_rewards = self.get_checkin_rewards() diff --git a/honkai2.py b/honkai2.py index de30ca7..5df4bf5 100644 --- a/honkai2.py +++ b/honkai2.py @@ -19,7 +19,7 @@ class Honkai2: '&utm_source=bbs&utm_medium=mys&utm_campaign=icon' self.headers['Cookie'] = config.config["account"]["cookie"] self.headers['x-rpc-device_id'] = tools.get_device_id() - self.headers['User-Agent'] = f'{config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}' + self.headers['User-Agent'] = f'{config.config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}' self.account_list = get_account_list("bh2_cn", self.headers) self.sign_day = 0 if len(self.account_list) != 0: diff --git a/honkai3rd.py b/honkai3rd.py index 346c8c3..6bab217 100644 --- a/honkai3rd.py +++ b/honkai3rd.py @@ -19,7 +19,7 @@ class Honkai3rd: '&utm_source=bbs&utm_medium=mys&utm_campaign=icon' self.headers['Cookie'] = config.config["account"]["cookie"] self.headers['x-rpc-device_id'] = tools.get_device_id() - self.headers['User-Agent'] = f'{config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}' + self.headers['User-Agent'] = f'{config.config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}' self.account_list = get_account_list("bh3_cn", self.headers) self.sign_day = 0 if len(self.account_list) != 0: diff --git a/tearsofthemis.py b/tearsofthemis.py index 4d5f690..ebfa215 100644 --- a/tearsofthemis.py +++ b/tearsofthemis.py @@ -19,7 +19,7 @@ class Tears_of_themis: f'act_id={setting.tearsofthemis_Act_id}' self.headers['Cookie'] = config.config["account"]["cookie"] self.headers['x-rpc-device_id'] = tools.get_device_id() - self.headers['User-Agent'] = f'{config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}' + self.headers['User-Agent'] = f'{config.config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}' self.account_list = get_account_list("nxx_cn", self.headers) self.sign_day = 0 if len(self.account_list) != 0: