Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
fix: update signApi
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb committed Dec 25, 2020
1 parent 2857749 commit 3fc1f0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions campusphere/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const log = require('../interface/colorLog')
class campusphereApp {
constructor(school) {
this.signApi = {
list: `${school.origin}/wec-counselor-sign-apps/stu/sign/queryDailySginTasks`,
detail: `${school.origin}/wec-counselor-sign-apps/stu/sign/detailSignTaskInst`,
sign: `${school.origin}/wec-counselor-sign-apps/stu/sign/completeSignIn`,
list: `${school.origin}/wec-counselor-sign-apps/stu/sign/getStuSignInfosInOneDay`,
detail: `${school.origin}/wec-counselor-sign-apps/stu/sign/detailSignInstance`,
sign: `${school.origin}/wec-counselor-sign-apps/stu/sign/submitSign`,
home: `${school.origin}/wec-counselor-sign-apps/stu/mobile`,
addr: school.addr,
}
Expand Down Expand Up @@ -47,13 +47,13 @@ exports.signApp = class signApp extends (
this.headers.cookie = await this.getCookie(cookie)

const { signApi, headers } = this
log.error(signApi.list)
try {
const res = await fetch(signApi.list, {
method: 'POST',
headers,
body: JSON.stringify({}),
})
log.object(this.headers)
if (res.headers.hasOwnProperty('set-cookie')) return true
const signQ = await res.json()
this.curTask = signQ.datas.unSignedTasks[0]
Expand Down

0 comments on commit 3fc1f0d

Please sign in to comment.