电话咨询
This commit is contained in:
@@ -640,17 +640,7 @@ const scheduleEndedRedirect = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const goToConsultDetail = () => {
|
const goToConsultDetail = () => {
|
||||||
// 结束页按钮必须强制重试,不能走 notifyMiniProgramCallEndedOnce()。
|
notifyCloudLawEnd().finally(() => notifyMiniProgramCallEndedOnce())
|
||||||
// 前面自动跳转可能已经把 miniProgramEndNotified / miniProgramRedirected 置为 true,
|
|
||||||
// 但实际 wx.miniProgram 导航可能静默失败,导致用户点「查看咨询详情」也被 once guard 拦掉。
|
|
||||||
miniProgramEndNotified = false
|
|
||||||
miniProgramRedirected = false
|
|
||||||
console.log('[CloudLawVideoCall] 查看咨询详情 CLICK force redirect', {
|
|
||||||
callId: callId.value,
|
|
||||||
consultId: consultId.value,
|
|
||||||
returnUrl: buildMiniProgramReturnUrl()
|
|
||||||
})
|
|
||||||
notifyCloudLawEnd().finally(() => notifyMiniProgramCallEnded())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const pollCommandsOnce = async () => {
|
const pollCommandsOnce = async () => {
|
||||||
|
|||||||
@@ -137,6 +137,11 @@ export function notifyNativeMiniProgramHangup() {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
const mp = window.wx && window.wx.miniProgram
|
||||||
|
if (!mp) {
|
||||||
|
console.warn('[cloudLawVoiceCall] bridge skip: window.wx.miniProgram 不存在(jweixin 未加载/不在小程序 web-view 内)')
|
||||||
|
return false
|
||||||
|
}
|
||||||
const href = String(window.location.href || '')
|
const href = String(window.location.href || '')
|
||||||
if (href.includes(`${CLOUD_LAW_HANGUP_QUERY}=1`)) {
|
if (href.includes(`${CLOUD_LAW_HANGUP_QUERY}=1`)) {
|
||||||
console.log('[cloudLawVoiceCall] bridge: URL 已含 cloudLawHangup=1,跳过重复重载')
|
console.log('[cloudLawVoiceCall] bridge: URL 已含 cloudLawHangup=1,跳过重复重载')
|
||||||
|
|||||||
Reference in New Issue
Block a user