mirror of
https://github.com/baiqwerdvd/ArknightsUID.git
synced 2025-05-04 19:17:33 +08:00
111111
This commit is contained in:
parent
da36659879
commit
5215e7902d
@ -180,13 +180,17 @@ class SklandLogin:
|
|||||||
self.ark_uid: str = result_data["data"]["uid"]
|
self.ark_uid: str = result_data["data"]["uid"]
|
||||||
|
|
||||||
async def generate_cred_by_code(self):
|
async def generate_cred_by_code(self):
|
||||||
self.client.headers["platform"] = "1"
|
headers = {
|
||||||
self.client.headers["vName"] = "1.28.0"
|
"User-Agent": "Skland/1.28.0 (com.hypergryph.skland; build:102800063; Android 35; ) Okhttp/4.11.0",
|
||||||
self.client.headers["origin"] = "https://zonai.skland.com/"
|
"platform": "1",
|
||||||
self.client.headers["referer"] = "https://zonai.skland.com/"
|
"vName": "1.28.0",
|
||||||
self.client.headers["sign_enable"] = False
|
"origin": "https://zonai.skland.com/",
|
||||||
self.client.headers["dId"] = await get_d_id()
|
"referer": "https://zonai.skland.com/",
|
||||||
self.client.headers["timestamp"] = str(int(datetime.now().timestamp()))
|
"sign_enable": False,
|
||||||
|
"dId": await get_d_id(),
|
||||||
|
"timestamp": str(int(datetime.now().timestamp())),
|
||||||
|
}
|
||||||
|
self.client.headers = headers
|
||||||
response = self.client.post(
|
response = self.client.post(
|
||||||
GENERATE_CRED_BY_CODE,
|
GENERATE_CRED_BY_CODE,
|
||||||
json={"code": self.code, "kind": 1},
|
json={"code": self.code, "kind": 1},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user