|
|
@ -27,7 +27,7 @@ App({ |
|
|
|
wx.setStorageSync('code', res.code) |
|
|
|
wx.setStorageSync('code', res.code) |
|
|
|
wx.getUserInfo({ |
|
|
|
wx.getUserInfo({ |
|
|
|
success: function (res) { |
|
|
|
success: function (res) { |
|
|
|
that.globalData.encrypted = {encryptData: res.encryptData, iv: res.iv} |
|
|
|
that.globalData.encrypted = {encryptData: res.encryptedData, iv: res.iv} |
|
|
|
that.globalData.userInfo = res.userInfo |
|
|
|
that.globalData.userInfo = res.userInfo |
|
|
|
typeof cb == "function" && cb(that.globalData.userInfo) |
|
|
|
typeof cb == "function" && cb(that.globalData.userInfo) |
|
|
|
} |
|
|
|
} |
|
|
|