Skip to content

Commit

Permalink
Fix HSR code redeem not working
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Sep 10, 2024
1 parent 5e66268 commit 2add667
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions genshin/client/components/hoyolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ async def redeem_code(
game_biz=utility.get_prod_game_biz(self.region, game),
lang=utility.create_short_lang_code(lang or self.lang),
),
method="POST" if game is types.Game.STARRAIL else "GET"
)

@managers.no_multi
Expand Down
2 changes: 1 addition & 1 deletion genshin/client/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_url(self, region: types.Region, game: types.Game) -> yarl.URL:
CODE_URL = GameRoute(
overseas=dict(
genshin="https://sg-hk4e-api.hoyoverse.com/common/apicdkey/api/webExchangeCdkey",
hkrpg="https://sg-hkrpg-api.hoyoverse.com/common/apicdkey/api/webExchangeCdkey",
hkrpg="https://sg-hkrpg-api.hoyoverse.com/common/apicdkey/api/webExchangeCdkeyRisk",
nap="https://public-operation-nap.hoyoverse.com/common/apicdkey/api/webExchangeCdkey",
tot="https://sg-public-api.hoyoverse.com/common/apicdkey/api/webExchangeCdkey",
),
Expand Down

0 comments on commit 2add667

Please sign in to comment.