|
|
|
|
|
|
|
|
* @return {*} |
|
|
* @return {*} |
|
|
*/ |
|
|
*/ |
|
|
const handleSig = async() => { |
|
|
const handleSig = async() => { |
|
|
|
|
|
alert('1111') |
|
|
const res = await axios.get(`https://hhz.test.t-aaron.com/api/tencentCloudRtc/genUserSig/${data.userId}`) |
|
|
const res = await axios.get(`https://hhz.test.t-aaron.com/api/tencentCloudRtc/genUserSig/${data.userId}`) |
|
|
if (res.data.code === 0) { |
|
|
if (res.data.code === 0) { |
|
|
|
|
|
alert('2222') |
|
|
data.userSig = res.data.data.userSig |
|
|
data.userSig = res.data.data.userSig |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const { userId, roomId } = route.query |
|
|
const { userId, roomId } = route.query |
|
|
data.userId = String(userId) |
|
|
data.userId = String(userId) |
|
|
data.roomId = Number(roomId) |
|
|
data.roomId = Number(roomId) |
|
|
|
|
|
alert(userId, roomId) |
|
|
await handleSig() |
|
|
await handleSig() |
|
|
}) |
|
|
}) |
|
|
|
|
|
|