🐛 Fix cn genshin sign

This commit is contained in:
omg-xtao 2023-12-01 11:09:32 +08:00 committed by GitHub
parent 8fcb14afcb
commit 0beb7e6880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View File

@ -63,9 +63,12 @@ class DailyRewardClient(BaseClient):
headers["x-rpc-sys_version"] = "13" headers["x-rpc-sys_version"] = "13"
headers["x-rpc-platform"] = "android" headers["x-rpc-platform"] = "android"
if self.game == Game.GENSHIN: if self.game == Game.GENSHIN:
headers["x-rpc-signgame"] = "hk4e"
headers["referer"] = ( headers["referer"] = (
"https://webstatic.mihoyo.com/bbs/event/signin-ys/index.html?" "https://act.mihoyo.com/bbs/event/signin/hk4e/index.html?"
"bbs_auth_required=true&act_id=e202009291139501&utm_source=bbs&utm_medium=mys&utm_campaign=icon" "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("uid", self.player_id)
params = params.set("region", recognize_genshin_server(self.player_id)) params = params.set("region", recognize_genshin_server(self.player_id))

View File

@ -12,7 +12,6 @@ from simnet.client.components.wish.genshin import GenshinWishClient
from simnet.utils.enum_ import Region from simnet.utils.enum_ import Region
from simnet.utils.types import CookieTypes, HeaderTypes, TimeoutTypes from simnet.utils.types import CookieTypes, HeaderTypes, TimeoutTypes
class GenshinClient( class GenshinClient(
CalculatorClient, CalculatorClient,
GenshinBattleChronicleClient, GenshinBattleChronicleClient,

View File

@ -263,7 +263,7 @@ REWARD_URL = GameRoute(
hkrpg="https://sg-public-api.hoyolab.com/event/luna/os/?act_id=e202303301540311", hkrpg="https://sg-public-api.hoyolab.com/event/luna/os/?act_id=e202303301540311",
), ),
chinese=dict( 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", honkai3rd="https://api-takumi.mihoyo.com/event/luna/?act_id=e202207181446311",
hkrpg="https://api-takumi.mihoyo.com/event/luna/?act_id=e202304121516551", hkrpg="https://api-takumi.mihoyo.com/event/luna/?act_id=e202304121516551",
), ),

View File

@ -10,7 +10,6 @@ from simnet.client.components.wish.starrail import StarRailWishClient
from simnet.utils.enum_ import Region from simnet.utils.enum_ import Region
from simnet.utils.types import CookieTypes, HeaderTypes, TimeoutTypes from simnet.utils.types import CookieTypes, HeaderTypes, TimeoutTypes
class StarRailClient( class StarRailClient(
StarRailBattleChronicleClient, StarRailBattleChronicleClient,
StarRailWishClient, StarRailWishClient,