Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dyq086 committed Jun 6, 2018
1 parent 0d52a78 commit 60608a2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/authorize.wpy
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@ export default class Authorize extends wepy.page {
nickName: e.detail.userInfo.nickName
}
})
if (rlt.result) {
if (rlt.data.result) {
let data = rlt.data;
if (data.openid) {
wepy.setStorageSync(USER_SPECICAL_INFO, obj);
if (data.data.openid) {
wepy.setStorageSync(USER_SPECICAL_INFO, data.data);
wepy.switchTab({
url: '/pages/home'
})
}
} else {
let res = await wepy.showModal({
Expand Down

0 comments on commit 60608a2

Please sign in to comment.