Skip to content

Commit

Permalink
签到接口
Browse files Browse the repository at this point in the history
  • Loading branch information
enpitsuLin committed Sep 20, 2023
1 parent 87f5c46 commit a958071
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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)
})
Expand Down Expand Up @@ -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}`)
Expand Down

0 comments on commit a958071

Please sign in to comment.