From bb87f4b1d25e080b9098ea09338c6350708c1fdd Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Wed, 14 Jan 2026 09:41:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E9=A2=91=E5=8F=B7=E7=BB=84?= =?UTF-8?q?=E4=BB=B6):=20=E7=94=A8=E6=88=B7=E5=8F=96=E6=B6=88=E7=9A=84?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E9=94=99=E8=AF=AF=EF=BC=8C=E4=B8=8D=E5=BC=B9?= =?UTF-8?q?=E5=87=BA=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components-diy/js/wechat-channel.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components-diy/js/wechat-channel.js b/components-diy/js/wechat-channel.js index 9dc33a9..8dd75d1 100644 --- a/components-diy/js/wechat-channel.js +++ b/components-diy/js/wechat-channel.js @@ -163,11 +163,16 @@ export const wechatChannelUtil = { // 统一错误处理 handleError(err, item) { console.error('微信视频号错误:', err); + const { errMsg = '微信视频播放失败', errCode = -1 } = err; + + // 错误码5: 表示用户点击了取消. openChannelsActivity:fail cancel + if ([5].includes(errCode)) { + return; + } - let errorMsg = err.errMsg || '微信视频播放失败'; const showErrorToast = (otherMsgs = []) => { uni.showToast({ - title: [errorMsg, ...otherMsgs].join('\n'), + title: [errMsg, ...otherMsgs].join('\n'), icon: 'none', duration: 2000 });