|
@@ -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
|