From 75618316247e0fd63c8d9a94feb445f933ae1b11 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Mon, 25 Jul 2022 20:03:04 +0800 Subject: [PATCH] super group add verification --- internal/push/fcm/push.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/push/fcm/push.go b/internal/push/fcm/push.go index 6fcfad70d..a9c7e5b39 100644 --- a/internal/push/fcm/push.go +++ b/internal/push/fcm/push.go @@ -23,7 +23,7 @@ var ( ) func init() { - FcmClient = newFcmClient() + //FcmClient = newFcmClient() } func newFcmClient() *Fcm { @@ -77,7 +77,7 @@ func (f *Fcm) Push(accounts []string, alert, detailContent, operationID string, ctx := context.Background() max := (i+1)*limit - 1 if max >= tokenlen { - max = tokenlen-1 + max = tokenlen - 1 } Msg.Tokens = Tokens[i*limit : max] //SendMulticast sends the given multicast message to all the FCM registration tokens specified.