[fix] 資料格式帶錯

This commit is contained in:
建喵 2022-08-29 16:04:26 +08:00
parent 05e2ad3d0e
commit 2977ed2341

View File

@ -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 {