From c11977554c2791925113015a7869cd7ec11d2320 Mon Sep 17 00:00:00 2001 From: taohebin Date: Tue, 30 Jul 2024 10:45:58 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=20unipush=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/uni-push/uni-push.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/API/uni-push/uni-push.uvue b/pages/API/uni-push/uni-push.uvue index 3db71bda..941270b3 100644 --- a/pages/API/uni-push/uni-push.uvue +++ b/pages/API/uni-push/uni-push.uvue @@ -33,7 +33,7 @@ const handleCreateChannel = (showToast: boolean) => { // #ifdef APP-ANDROID - const manager = uni.getChannelManager() + const manager = uni.getPushChannelManager() manager.setPushChannel({ channelId: "msg-pass", channelDesc: "留言审核通过", @@ -47,7 +47,7 @@ } const handleGetAllChannels = () => { // #ifdef APP-ANDROID - const manager = uni.getChannelManager() + const manager = uni.getPushChannelManager() console.log("channels : " + manager.getAllChannels()); channelInfo.value = `渠道信息为: \n ${manager.getAllChannels()}` // #endif -- GitLab