From a958071c60f2b7aeba550fedcd5b778659d2d95c Mon Sep 17 00:00:00 2001 From: enpitsulin Date: Wed, 20 Sep 2023 09:15:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.ts b/main.ts index 6bff5ae..f0988dd 100644 --- a/main.ts +++ b/main.ts @@ -57,7 +57,8 @@ type AttendanceResponse = SklandResponse<{ const command_header = { "User-Agent": "Skland/1.0.1 (com.hypergryph.skland; build:100001014; Android 31; ) Okhttp/4.11.0", "Accept-Encoding": "gzip", - "Connection": "close" + "Connection": "close", + 'platform': '1', } async function auth() { @@ -100,7 +101,6 @@ async function getBinding(cred: string) { const response = await fetch(BINDING_URL, { headers: Object.assign({ cred, - platform: '1', "Content-Type": "application/json; charset=utf-8" }, command_header) }) @@ -136,7 +136,7 @@ Promise.all( }) } ) - const data = await response.json() as AttendanceResponse + const data = await response.json() as AttendanceResponse if (data.code === 10001) { console.log(`${character.nickName} ${data.message}`)