From 2977ed2341c62a0206303106372822f37e1d3ec6 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Mon, 29 Aug 2022 16:04:26 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E8=B3=87=E6=96=99=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=B8=B6=E9=8C=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/Script/Manager.ts b/assets/Script/Manager.ts index d4f2161..862d351 100644 --- a/assets/Script/Manager.ts +++ b/assets/Script/Manager.ts @@ -81,7 +81,7 @@ export default class Manager extends cc.Component { this.webview.node.on("loaded", () => { const FCMToken: string = NativeClass.Instance.GetFCMToken(); console.log(`FCMToken ${FCMToken}`); - NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, FCMToken); + NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, `"${FCMToken}"`); }, this); } @@ -119,7 +119,7 @@ export default class Manager extends cc.Component { public onLoadOK(): void { const FCMToken: string = NativeClass.Instance.GetFCMToken(); console.log(`FCMToken ${FCMToken}`); - NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, FCMToken); + NativeClass.Instance.CocosBridge(System_Eevent.SetFCMToken, `"${FCMToken}"`); } public Alert(msg: string): void {