|
|
@@ -30,10 +30,8 @@
|
|
|
getUserInfo(e) {
|
|
|
console.log(e);
|
|
|
if (e.detail.errMsg == "getUserInfo:ok") {
|
|
|
-
|
|
|
this.iv = e.detail.iv;
|
|
|
this.encryptedData = e.detail.encryptedData;
|
|
|
-
|
|
|
this.loginUserInfo()
|
|
|
} else {
|
|
|
console.log("用户信息授权失败");
|
|
|
@@ -46,6 +44,7 @@
|
|
|
},
|
|
|
loginUserInfo(){
|
|
|
let that = this;
|
|
|
+ console.log('inviteId:',getApp().globalData.inviteId)
|
|
|
uni.request({
|
|
|
url:getApp().globalData.shareUrl, //需要设置为全局
|
|
|
method: 'POST',
|
|
|
@@ -61,7 +60,8 @@
|
|
|
headimg:getApp().globalData.user_headUrl,
|
|
|
iv:that.iv,
|
|
|
session_key:getApp().globalData.session_key,
|
|
|
- encryptedData:that.encryptedData
|
|
|
+ encryptedData:that.encryptedData,
|
|
|
+ invited:getApp().globalData.inviteId
|
|
|
},
|
|
|
success: res => {
|
|
|
getApp().globalData.user_id = res.data.msg.id;
|