This commit is contained in:
baiqwerdvd 2024-12-09 16:23:55 +08:00
parent da36659879
commit 5215e7902d
No known key found for this signature in database
GPG Key ID: 7717E46E1797411A

View File

@ -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},