Skip to content

Commit

Permalink
Fix ZZZ check-in for Miyoushe not working
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Aug 18, 2024
1 parent e0d61cd commit 6ee36e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion genshin/client/components/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down
2 changes: 1 addition & 1 deletion genshin/client/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
)
Expand Down

0 comments on commit 6ee36e8

Please sign in to comment.