diff --git a/genshin/client/components/daily.py b/genshin/client/components/daily.py index b8fc0399..134f5937 100644 --- a/genshin/client/components/daily.py +++ b/genshin/client/components/daily.py @@ -66,8 +66,10 @@ async def request_daily_reward( headers["x-rpc-channel"] = "miyousheluodi" headers["x-rpc-device_model"] = str(self.hoyolab_id) or "" - if game == types.Game.GENSHIN: + if game is types.Game.GENSHIN: headers["x-rpc-signgame"] = "hk4e" + elif game is types.Game.ZZZ: + headers["x-rpc-signgame"] = "zzz" headers["ds"] = ds_utility.generate_dynamic_secret(constants.DS_SALT["cn_signin"]) diff --git a/genshin/client/routes.py b/genshin/client/routes.py index 9191fc3b..d3f7ace3 100644 --- a/genshin/client/routes.py +++ b/genshin/client/routes.py @@ -212,7 +212,7 @@ def get_url(self, region: types.Region, game: types.Game) -> yarl.URL: genshin="https://api-takumi.mihoyo.com/event/luna/?act_id=e202311201442471", honkai3rd="https://api-takumi.mihoyo.com/event/luna/?act_id=e202306201626331", hkrpg="https://api-takumi.mihoyo.com/event/luna/?act_id=e202304121516551", - nap="https://act-nap-api.mihoyo.com/event/luna/zzz/?act_id=e202406242138391", + nap="https://api-takumi.mihoyo.com/event/luna/zzz?act_id=e202406242138391", tot="https://api-takumi.mihoyo.com/event/luna?act_id=e202202251749321", ), )