从tools获取ua
This commit is contained in:
parent
8838923ea1
commit
49aa7282da
@ -18,8 +18,7 @@ class Genshin:
|
|||||||
f'&act_id={setting.genshin_Act_id}&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
|
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['Cookie'] = config.config["account"]["cookie"]
|
||||||
self.headers['x-rpc-device_id'] = tools.get_device_id()
|
self.headers['x-rpc-device_id'] = tools.get_device_id()
|
||||||
self.headers[
|
self.headers['User-Agent'] = tools.get_useragent()
|
||||||
'User-Agent'] = f'{config.config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}'
|
|
||||||
self.account_list = get_account_list("hk4e_cn", self.headers)
|
self.account_list = get_account_list("hk4e_cn", self.headers)
|
||||||
if len(self.account_list) != 0:
|
if len(self.account_list) != 0:
|
||||||
self.checkin_rewards = self.get_checkin_rewards()
|
self.checkin_rewards = self.get_checkin_rewards()
|
||||||
|
@ -19,7 +19,7 @@ class Honkai2:
|
|||||||
'&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
|
'&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
|
||||||
self.headers['Cookie'] = config.config["account"]["cookie"]
|
self.headers['Cookie'] = config.config["account"]["cookie"]
|
||||||
self.headers['x-rpc-device_id'] = tools.get_device_id()
|
self.headers['x-rpc-device_id'] = tools.get_device_id()
|
||||||
self.headers['User-Agent'] = f'{config.config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}'
|
self.headers['User-Agent'] = tools.get_useragent()
|
||||||
self.account_list = get_account_list("bh2_cn", self.headers)
|
self.account_list = get_account_list("bh2_cn", self.headers)
|
||||||
self.sign_day = 0
|
self.sign_day = 0
|
||||||
if len(self.account_list) != 0:
|
if len(self.account_list) != 0:
|
||||||
|
@ -19,7 +19,7 @@ class Honkai3rd:
|
|||||||
'&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
|
'&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
|
||||||
self.headers['Cookie'] = config.config["account"]["cookie"]
|
self.headers['Cookie'] = config.config["account"]["cookie"]
|
||||||
self.headers['x-rpc-device_id'] = tools.get_device_id()
|
self.headers['x-rpc-device_id'] = tools.get_device_id()
|
||||||
self.headers['User-Agent'] = f'{config.config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}'
|
self.headers['User-Agent'] = tools.get_useragent()
|
||||||
self.account_list = get_account_list("bh3_cn", self.headers)
|
self.account_list = get_account_list("bh3_cn", self.headers)
|
||||||
self.sign_day = 0
|
self.sign_day = 0
|
||||||
if len(self.account_list) != 0:
|
if len(self.account_list) != 0:
|
||||||
|
@ -19,7 +19,7 @@ class Tears_of_themis:
|
|||||||
f'act_id={setting.tearsofthemis_Act_id}'
|
f'act_id={setting.tearsofthemis_Act_id}'
|
||||||
self.headers['Cookie'] = config.config["account"]["cookie"]
|
self.headers['Cookie'] = config.config["account"]["cookie"]
|
||||||
self.headers['x-rpc-device_id'] = tools.get_device_id()
|
self.headers['x-rpc-device_id'] = tools.get_device_id()
|
||||||
self.headers['User-Agent'] = f'{config.config["games"]["cn"]["useragent"]} miHoYoBBS/{setting.mihoyobbs_Version}'
|
self.headers['User-Agent'] = tools.get_useragent()
|
||||||
self.account_list = get_account_list("nxx_cn", self.headers)
|
self.account_list = get_account_list("nxx_cn", self.headers)
|
||||||
self.sign_day = 0
|
self.sign_day = 0
|
||||||
if len(self.account_list) != 0:
|
if len(self.account_list) != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user