drgame-cc 1.0.32 → 1.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,6 +20,7 @@ export class PlatformAdapter {
|
|
|
20
20
|
var platform = GameAnalyticsPlatform.XiaomiTv;//平台由sdk后续处理
|
|
21
21
|
var appItem = GameAnalytics.getAppItem(platform);
|
|
22
22
|
var contentId = minigameID.toString();//InternalUitl.getChineseInitials(cnName);
|
|
23
|
+
|
|
23
24
|
TvUi.init({
|
|
24
25
|
cpId: contentId,
|
|
25
26
|
version: this.version,
|
|
@@ -69,7 +70,8 @@ export class PlatformAdapter {
|
|
|
69
70
|
content_id: contentId, // 游戏ID(具体乐窝的游戏ID)
|
|
70
71
|
content_title: cnName, // 游戏名(具体的乐窝游戏名)
|
|
71
72
|
});
|
|
72
|
-
|
|
73
|
+
if (this.isCocos)
|
|
74
|
+
await ToastManager.Inst.init();
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
/**
|
|
@@ -217,4 +219,8 @@ export class PlatformAdapter {
|
|
|
217
219
|
public static reportBatch(events: AnalyticsEvent[]) {
|
|
218
220
|
GameAnalytics.reportBatch(events);
|
|
219
221
|
}
|
|
222
|
+
|
|
223
|
+
public static get isCocos() {
|
|
224
|
+
return window['cc'] != undefined;
|
|
225
|
+
}
|
|
220
226
|
}
|