From 4a3a228a802bed7172aedb33a9c5e70bd2b471a9 Mon Sep 17 00:00:00 2001 From: liyi Date: Thu, 3 Jul 2025 17:10:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E6=95=B4VoIP=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E7=9A=84=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tools/push/xs_jPhush.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/tools/push/xs_jPhush.dart b/lib/tools/push/xs_jPhush.dart index 0563de44..2763d2d0 100755 --- a/lib/tools/push/xs_jPhush.dart +++ b/lib/tools/push/xs_jPhush.dart @@ -179,9 +179,10 @@ class XSJPushProvider { if ('中国' != entity.data!.name) { String? token = await CallKitHandler.getVoipToken(); if (token != null && token.isNotEmpty) { - channels.add({ - 'channel': 'voipToken', - 'channelToken': token, + channels.forEach((element) { + if(element['channel'] == 'apns') { + element['voipToken'] = token; + } }); } else { debugPrint(