Browse Source

添加userid

306132416@qq.com 6 years ago
parent
commit
d1230153d1
2 changed files with 4 additions and 1 deletions
  1. 2 0
      pages/auth/index.vue
  2. 2 1
      pages/index/index.vue

+ 2 - 0
pages/auth/index.vue

@@ -45,6 +45,8 @@
 			loginUserInfo(){
 				let that = this;
 				console.log('inviteId:',getApp().globalData.inviteId)
+				console.log('session_key:',getApp().globalData.session_key)
+				console.log('inviteId:',getApp().globalData.inviteId)
 				uni.request({
 					url:getApp().globalData.shareUrl, //需要设置为全局
 					method: 'POST',

+ 2 - 1
pages/index/index.vue

@@ -296,7 +296,8 @@ export default {
 						 that.getUserStorage();
 						 that.getHistory();
 					}else{
-						getApp().globalData.session_key = res.data.msg.session_key;
+						getApp().globalData.session_key = res.data.msg.session_key;
+						getApp().globalData.user_id = res.data.msg.id;
 						that.isAuth = isAuth;
 						getApp().globalData.isAuth = isAuth;
 						wx.hideLoading();