getRoomId(){
var promise= new Promise((resolve) => {
getRoomLiveInfo(this.userid).then(res => {
resolve(res)
})
})
promise.then(res => {
// console.log(res)
if(res.data.rspCode == '1'){
this.roomId = res.data.data.webId
getInviteCode(this.roomId).then(res => {
console.log(res)
if(res.data.rspCode == '1'){
this.inviteCode = res.data.data.code
console.log( this.inviteCode,'会客厅邀请码')
}
})
}
})
},
async getRoomId(){
await getRoomLiveInfo(this.userid).then(res => {
if(res.data.rspCode == '1'){
this.roomId = res.data.data.webId
}
})
await getInviteCode(this.roomId).then(res => {
if(res.data.rspCode == '1'){
this.inviteCode = res.data.data.code
console.log( this.inviteCode,'会客厅邀请码')
}
})
}