mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-25 15:42:16 +00:00
🐛 Fix cn genshin sign
This commit is contained in:
parent
8fcb14afcb
commit
0beb7e6880
@ -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))
|
||||||
|
@ -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,
|
||||||
|
@ -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",
|
||||||
),
|
),
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user