运营数据

This commit is contained in:
duoaohui
2026-06-06 11:56:16 +08:00
parent 3b0f1f84ff
commit d6b8a0e1e1
2 changed files with 14 additions and 5 deletions

View File

@@ -236,7 +236,8 @@ import {
isCloudLawEmbed,
isCloudLawLawRole,
minimizeCloudLawMeeting,
notifyCloudLawCallEnded
notifyCloudLawCallEnded,
getMiniProgram
} from '@/utils/cloudLawMiniProgram'
import {
isCloudLawLawRoleInMeeting,
@@ -875,13 +876,17 @@ const handleCloudLawConsultEnded = async (tip = '用户已退出咨询') => {
try {
if (cloudLawCallId.value) {
await notifyCloudLawBackendEnd(cloudLawCallId.value, 'law', cloudLawApiBase.value)
notifyCloudLawParentCallEnded(cloudLawCallId.value)
if (isCloudLawPcIframe()) {
notifyCloudLawParentCallEnded(cloudLawCallId.value)
} else if (getMiniProgram()) {
notifyCloudLawCallEnded(cloudLawCallId.value)
}
}
if (meetingStore.isInMeeting) {
await meetingStore.leave().catch(() => {})
}
uni.showToast({ title: tip, icon: 'none' })
if (!isCloudLawPcIframe()) {
if (!isCloudLawPcIframe() && !getMiniProgram()) {
setTimeout(() => redirectHome(true), 800)
}
} finally {
@@ -987,8 +992,12 @@ onMounted(() => {
// 云律律师端(含 PC iframe用户挂断后同步云律后端 + 通知父页面释放浮窗
if (isCloudLawLawRoleInMeeting(cloudLawRole.value) && cloudLawCallId.value) {
notifyCloudLawBackendEnd(cloudLawCallId.value, 'law', cloudLawApiBase.value)
notifyCloudLawParentCallEnded(cloudLawCallId.value)
if (isCloudLawPcIframe()) {
notifyCloudLawParentCallEnded(cloudLawCallId.value)
return
}
if (getMiniProgram()) {
notifyCloudLawCallEnded(cloudLawCallId.value)
return
}
}