[fix] 資料格式帶錯
This commit is contained in:
parent
05e2ad3d0e
commit
2977ed2341
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user