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

Commit

Permalink
fix(api): random addr error
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb committed Feb 19, 2021
1 parent 1b4ee70 commit ec9a23e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion campusphere/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,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.1",
"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": "^2.0.0"
"@beetcb/cea": "^2.0.1"
}
}

0 comments on commit ec9a23e

Please sign in to comment.