- 申请小程序直播组件一直显示待小程序管理员确认,但管理员一直找不到在哪里确认,是小程序的还是官方管理?
[图片]
04-19 - 真机调试报错没有打印日志?
微信开发者工具:1.06.2306020 操作系统:windows11
2023-07-13 - 使用官方提供一对一音视频通话api发起通话对方无法收到
<template> <view class="container"> <input placeholder="请输入类型" v-model="inputType" /> <button class="mt20" style="padding: 20rpx 0rpx;" @click="openChat">确定</button> <button class="mt20 " style="padding: 20rpx 0rpx;" v-if="inputType === '1' || inputType === '2'" @click="toChat('video')">视频会话</button> <button class="mt20" style="padding: 20rpx 0rpx;" v-if="inputType === '1' || inputType === '2'" @click="toChat('voice')">语音会话</button> tips:1是患者端发起。2是医生端发起 </view> </template> <script> export default { data() { return { inputType: '', } }, methods: { toChat(type) { if (this.inputType === '1') { wx.join1v1Chat({ caller: { nickname: '高乐', openid: 'oHowN5o0E5hQofZqwsnV9t_3UiJk' }, listener: { nickname: '张6', openid: 'ohpu74r2z831zNKLq682YoBXAeFg' }, roomType: type, success: res1 => { console.log(res1) }, fail: e1 => { console.log(e1) uni.showToast({ title: '开启会话失败', icon: 'none' }) } }) } else if (this.inputType === '2') { wx.join1v1Chat({ caller: { nickname: '张6', openid: 'ohpu74r2z831zNKLq682YoBXAeFg' }, listener: { nickname: '高乐', openid: 'oHowN5o0E5hQofZqwsnV9t_3UiJk' }, roomType: type, success: res1 => { console.log(res1) }, fail: e1 => { console.log(e1) uni.showToast({ title: '开启会话失败', icon: 'none' }) } }) } }, openChat() { if (!this.inputType) { return uni.showToast({ title: '先输入类型1或者2', icon: 'none' }) } wx.setEnable1v1Chat({ enable: true, success: res => { uni.showToast({ title: '支持音视频', duration: 2000 }) }, fail: e => { console.log(e) uni.showToast({ title: `${JSON.stringify(e.errMsg)},错误码:${e.errCode}`, icon: 'none', duration: 2500 }) } }) } } } </script>
2023-05-12 - wx.join1v1Chat发起通话对方收不到?
两方用户的wx.setEnable1v1Chat设置enable未true了,openid信息检查过对得上没问题的,使用wx.join1v1Chat发起通话,对方一直收不到通话信息,播了一会显示"对方可能不在小程序内,建议稍后再次尝试"是什么原因啊?着急在线求解
2023-05-11