APP.VUE 里面加了
setup() {
console.log("setup -- app.vue");
onLaunch(() => {
console.log("setup -- app.vue - onLaunch");
getRoute();
uni.loadFontFace({
family: "PingFang-Sc",
source:
'url("https://img.taobit.cn/20210519-1-f80bfb7f429da896f41037c6ad020e2b.ttf")',
success: (res) => {
console.log("loadFontFace success", res);
},
});
wx.setEnable1v1Chat({
enable: true,
success: (res) => {
console.log("setEnable1v1Chat success", res);
},
fail: (res) => {
console.log("setEnable1v1Chat fail", res);
},
});
});
业务代码里面使用了
wx.join1v1Chat({
caller: {
nickname: profile.value.nickName,
headImage: profile.value.avatar,
openid: profile.value.openId
},
listener: {
nickname: props.listener.nickName,
headImage: props.listener.avatar,
openid: props.listener.openId
},
backgroundType: 3,
// roomType: 'video',
roomType: apiUrl.callType,
success: (res: any) => {
console.log("join1v1Chat success", res);
wx.offVoIPChatStateChanged(
(res: any) => {
console.log(`移除监听, ${res.state}`);
}
)
wx.onVoIPChatStateChanged((res: any) => {
console.log(`房间发生变化, ${res.state}`);
})
},
fail: (res: any) => {
uni.showToast({
title: '拨打失败,可能对方未打开小程序',
icon: 'none',
duration: 2500
})
console.log(res)
},
complete: (res: any) => {
console.log("join1v1Chat complete", res);
}
})
}
权限也已经配置
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序定位"
},
"scope.record": {
"desc": "远程验货视频用于录音"
},
"scope.camera": {
"desc": "远程验货视频用于视频查验货物信息"
}
},
最后调用结果是
join1v1Chat:fail -10086, -5, join room callback failed: 13, 290738557453344500
服务在8月27日及之前可用,有调用记录,代码未动,8.28之后不可用
现在重试看看
这个大规模出现问题居然这么久不管,也不发通告?
遇到了同样的问题