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 authored Feb 19, 2021
1 parent 1b4ee70 commit 06de1f1
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 06de1f1

Please sign in to comment.