diff --git a/simnet/client/components/daily.py b/simnet/client/components/daily.py index b6db328..296dd10 100644 --- a/simnet/client/components/daily.py +++ b/simnet/client/components/daily.py @@ -63,9 +63,12 @@ class DailyRewardClient(BaseClient): headers["x-rpc-sys_version"] = "13" headers["x-rpc-platform"] = "android" if self.game == Game.GENSHIN: + headers["x-rpc-signgame"] = "hk4e" headers["referer"] = ( - "https://webstatic.mihoyo.com/bbs/event/signin-ys/index.html?" - "bbs_auth_required=true&act_id=e202009291139501&utm_source=bbs&utm_medium=mys&utm_campaign=icon" + "https://act.mihoyo.com/bbs/event/signin/hk4e/index.html?" + "bbs_auth_required=true&act_id=e202311201442471&" + "bbs_auth_required=true&bbs_presentation_style=fullscreen&" + "utm_source=bbs&utm_medium=mys&utm_campaign=icon" ) params = params.set("uid", self.player_id) params = params.set("region", recognize_genshin_server(self.player_id)) diff --git a/simnet/client/genshin.pyi b/simnet/client/genshin.pyi index 7fee2eb..f01dfcc 100644 --- a/simnet/client/genshin.pyi +++ b/simnet/client/genshin.pyi @@ -12,7 +12,6 @@ from simnet.client.components.wish.genshin import GenshinWishClient from simnet.utils.enum_ import Region from simnet.utils.types import CookieTypes, HeaderTypes, TimeoutTypes - class GenshinClient( CalculatorClient, GenshinBattleChronicleClient, diff --git a/simnet/client/routes.py b/simnet/client/routes.py index 4357bc5..867271a 100644 --- a/simnet/client/routes.py +++ b/simnet/client/routes.py @@ -263,7 +263,7 @@ REWARD_URL = GameRoute( hkrpg="https://sg-public-api.hoyolab.com/event/luna/os/?act_id=e202303301540311", ), chinese=dict( - genshin="https://api-takumi.mihoyo.com/event/bbs_sign_reward/?act_id=e202009291139501", + genshin="https://api-takumi.mihoyo.com/event/luna/?act_id=e202311201442471", honkai3rd="https://api-takumi.mihoyo.com/event/luna/?act_id=e202207181446311", hkrpg="https://api-takumi.mihoyo.com/event/luna/?act_id=e202304121516551", ), diff --git a/simnet/client/starrail.pyi b/simnet/client/starrail.pyi index dcbddef..6701d72 100644 --- a/simnet/client/starrail.pyi +++ b/simnet/client/starrail.pyi @@ -10,7 +10,6 @@ from simnet.client.components.wish.starrail import StarRailWishClient from simnet.utils.enum_ import Region from simnet.utils.types import CookieTypes, HeaderTypes, TimeoutTypes - class StarRailClient( StarRailBattleChronicleClient, StarRailWishClient,