Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Womsxd committed Sep 4, 2023
1 parent 62a643b commit e9fb02b
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions genshin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class Genshin(GameCheckin):
def __init__(self) -> None:
super(Genshin, self).__init__("hk4e_cn", setting.genshin_checkin_rewards)
self.headers['Referer'] = f'https://webstatic.mihoyo.com/bbs/event/signin-ys/index.html?bbs_auth_required=tru' \
f'e&act_id={setting.genshin_Act_id}&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
self.act_id = setting.genshin_Act_id
self.sign_api = setting.genshin_Signurl
self.is_sign_api = setting.genshin_Is_signurl
f'e&act_id={setting.genshin_act_id}&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
self.act_id = setting.genshin_act_id
self.sign_api = setting.genshin_signurl
self.is_sign_api = setting.genshin_is_signurl
self.game_mid = "genshin"
self.game_name = "原神"
self.player_name = "旅行者"
6 changes: 3 additions & 3 deletions honkai2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

class Honkai2(GameCheckin):
def __init__(self) -> None:
super(Honkai2, self).__init__("bh2_cn", setting.any_checkin_rewards.format(setting.honkai2_Act_id))
super(Honkai2, self).__init__("bh2_cn", setting.any_checkin_rewards.format(setting.honkai2_act_id))
self.headers['Referer'] = 'https://webstatic.mihoyo.com/bbs/event/signin/bh2/index.html?bbs_auth_required' \
f'=true&act_id={setting.honkai2_Act_id}&bbs_presentation_style=fullscreen' \
f'=true&act_id={setting.honkai2_act_id}&bbs_presentation_style=fullscreen' \
'&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
self.act_id = setting.honkai2_Act_id
self.act_id = setting.honkai2_act_id
self.game_mid = "honkai2"
self.game_name = "崩坏学园2"
6 changes: 3 additions & 3 deletions honkai3rd.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

class Honkai3rd(GameCheckin):
def __init__(self) -> None:
super(Honkai3rd, self).__init__("bh3_cn", setting.any_checkin_rewards.format(setting.honkai3rd_Act_id))
super(Honkai3rd, self).__init__("bh3_cn", setting.any_checkin_rewards.format(setting.honkai3rd_act_id))
self.headers['Referer'] = 'https://webstatic.mihoyo.com/bbs/event/signin/bh3/index.html?bbs_auth_required' \
f'=true&act_id={setting.honkai3rd_Act_id}&bbs_presentation_style=fullscreen' \
f'=true&act_id={setting.honkai3rd_act_id}&bbs_presentation_style=fullscreen' \
'&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
self.act_id = setting.honkai3rd_Act_id
self.act_id = setting.honkai3rd_act_id
self.game_mid = "honkai3rd"
self.game_name = "崩坏3"
self.player_name = "舰长"
6 changes: 3 additions & 3 deletions honkaisr.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

class Honkaisr(GameCheckin):
def __init__(self):
super(Honkaisr, self).__init__("hkrpg_cn", setting.any_checkin_rewards.format(setting.honkai_sr_Act_id))
super(Honkaisr, self).__init__("hkrpg_cn", setting.any_checkin_rewards.format(setting.honkai_sr_act_id))
self.headers['Referer'] = f'https://webstatic.mihoyo.com/bbs/event/signin/hkrpg/index.html?' \
f'act_id={setting.honkai_sr_Act_id}&bbs_auth_required=true&bbs_presentation_style' \
f'act_id={setting.honkai_sr_act_id}&bbs_auth_required=true&bbs_presentation_style' \
f'=fullscreen&utm_source=share&utm_medium=bbs&utm_campaign=app'
self.act_id = setting.honkai_sr_Act_id
self.act_id = setting.honkai_sr_act_id
self.game_mid = "honkai_sr"
self.game_name = "崩坏: 星穹铁道"
self.player_name = "开拓者"
22 changes: 11 additions & 11 deletions setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# 米游社的客户端类型
mihoyobbs_Client_type = "2" # 1为ios 2为安卓
mihoyobbs_Client_type_web = "5" # 4为pc web 5为mobile web
# 云原神版本
# 云原神相关数据
cloudgenshin_Version = "3.0.0"

# 米游社的分区列表
Expand Down Expand Up @@ -110,26 +110,26 @@
any_sign_url = web_api + "/event/luna/sign"

# 崩坏2自动签到相关的相关设置
honkai2_Act_id = "e202203291431091"
honkai2_act_id = "e202203291431091"

# 崩坏3自动签到相关的设置
honkai3rd_Act_id = "e202306201626331"
honkai3rd_act_id = "e202306201626331"

# 未定事件簿自动签到相关设置
tearsofthemis_Act_id = "e202202251749321"
tearsofthemis_act_id = "e202202251749321"

# 原神自动签到相关的设置
genshin_Act_id = "e202009291139501"
genshin_checkin_rewards = f'{web_api}/event/bbs_sign_reward/home?act_id={genshin_Act_id}'
genshin_Is_signurl = web_api + "/event/bbs_sign_reward/info?act_id={}&region={}&uid={}"
genshin_Signurl = web_api + "/event/bbs_sign_reward/sign"
genshin_act_id = "e202009291139501"
genshin_checkin_rewards = f'{web_api}/event/bbs_sign_reward/home?act_id={genshin_act_id}'
genshin_is_signurl = web_api + "/event/bbs_sign_reward/info?act_id={}&region={}&uid={}"
genshin_signurl = web_api + "/event/bbs_sign_reward/sign"

# 星穹铁道自动签到相关设置
honkai_sr_Act_id = "e202304121516551"
honkai_sr_act_id = "e202304121516551"

# 云原神相关api
cloud_genshin_Api = "https://api-cloudgame.mihoyo.com"
cloud_genshin_sgin = cloud_genshin_Api + "/hk4e_cg_cn/wallet/wallet/get"
cloud_genshin_api = "https://api-cloudgame.mihoyo.com"
cloud_genshin_sgin = cloud_genshin_api + "/hk4e_cg_cn/wallet/wallet/get"

# 接下来是国际服的内容

Expand Down
6 changes: 3 additions & 3 deletions tearsofthemis.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

class Tears_of_themis(GameCheckin):
def __init__(self) -> None:
super(Tears_of_themis, self).__init__("nxx_cn", setting.any_checkin_rewards.format(setting.tearsofthemis_Act_id))
super(Tears_of_themis, self).__init__("nxx_cn", setting.any_checkin_rewards.format(setting.tearsofthemis_act_id))
self.headers['Referer'] = 'https://webstatic.mihoyo.com/bbs/event/signin/nxx/index.html?bbs_auth_required' \
'=true&bbs_presentation_style=fullscreen' \
f'act_id={setting.tearsofthemis_Act_id}'
self.act_id = setting.tearsofthemis_Act_id
f'act_id={setting.tearsofthemis_act_id}'
self.act_id = setting.tearsofthemis_act_id
self.game_mid = "tears_of_themis"
self.game_name = "未定事件簿"
self.player_name = "律师"
Expand Down

0 comments on commit e9fb02b

Please sign in to comment.