Browse Source

直播问题修改

unknown 4 years ago
parent
commit
aedceb568a
2 changed files with 3 additions and 3 deletions
  1. 1 1
      config/api.js
  2. 2 2
      pagesMedia/pickVideo.vue

+ 1 - 1
config/api.js

@@ -75,7 +75,7 @@ module.exports = {
 	//  初始化自助采摘视频
 	creatPickVideo: WX_API_BASE + 'app/liveAndVideo/merchant/addPickLive',
 	//  自助采摘直播获取个人信息
-	getMainInfo: WX_API_BASE + 'app/member/selectUserById/',
+	getMainInfo: WX_API_BASE + 'app/member/selectUserById',
 	//  小程序-商户端-发起直播推送给订阅用户推送消息
 	startLivePushMessage: WX_API_BASE + '/app/liveAndVideo/startLivePushMessage/',
     // 我的-查询各状态订单数量

+ 2 - 2
pagesMedia/pickVideo.vue

@@ -165,7 +165,7 @@
 				this.trtcComponent.on(TRTC_EVENT.LOCAL_JOIN, event => {
 					if(this.trtcComponent.getRemoteUserList().lenth>0){
 						var userId=this.trtcComponent.getRemoteUserList()[0].userID;
-						NET.request(API.getMainInfo + userId, {}, 'GET').then(res => {
+						NET.request(API.getMainInfo +"?userId="+ userId, {}, 'GET').then(res => {
 							this.setData({
 								head_img:res.data.headimg,
 								title:res.data.nickname
@@ -194,7 +194,7 @@
 				}); // 远端用户进房
 				this.trtcComponent.on(TRTC_EVENT.REMOTE_USER_JOIN, event => {
 					var userId=this.trtcComponent.getRemoteUserList()[0].userID;
-					NET.request(API.getMainInfo + userId, {}, 'GET').then(res => {
+					NET.request(API.getMainInfo +"?userId="+ userId, {}, 'GET').then(res => {
 						this.setData({
 							head_img:res.data.headimg,
 							title:res.data.nickname