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

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb committed Feb 20, 2021
2 parents dadb701 + 0fdb490 commit a1e824f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions campusphere/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ exports.signApp = class signApp extends campusphereApp {
const logInfo = {
签到结果: res.message,
签到地址: form.position,
真实信息: signedStuInfo.userNamdd,
真实信息: signedStuInfo.userName,
}

// Hide sensitive info on github actions, cause it's public by default
Expand All @@ -125,7 +125,8 @@ exports.signApp = class signApp extends campusphereApp {
// Hard coded position info
// Randomly generated from http://api.map.baidu.com/lbsapi
const userAddr = this.user.addr
const posGenFromCitys = userAddr
const noRandom = !(typeof userAddr === 'string')
const posGenFromCitys = noRandom
? [userAddr]
: [
['116.622631', '40.204822', '北京市顺义区X012'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@beetcb/cea",
"version": "1.1.9",
"version": "2.0.2",
"description": "campusphere-elegant-auth: login to swms/campusphere at ease",
"main": "dist/api.js",
"bin": "dist/cli.js",
Expand Down
2 changes: 1 addition & 1 deletion serverless/cea/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"@beetcb/cea": "^1.1.9"
"@beetcb/cea": "^2.0.1"
}
}
2 changes: 1 addition & 1 deletion src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class School {

async loadSchoolFromToml(toml) {
if (!this.conf.get('school')) {
const isSignAtHome = toml.addr
const isSignAtHome = toml.users[0].addr
const school = await this.schoolApi(toml.school, isSignAtHome)
if (!isSignAtHome) school.addr = await this.schoolAddr(school.name)
this.conf.set('school', school)
Expand Down

0 comments on commit a1e824f

Please sign in to comment.