drgame-cc 1.0.27 → 1.0.28

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.
@@ -13,11 +13,14 @@ export class PlatformAdapter {
13
13
  private static readonly version = "1.0.0";
14
14
  private static readonly designWidth = 1920;
15
15
  private static readonly designHeight = 1080;
16
- /** 初始化 */
17
- public static async init(cnName: string) {
16
+ /** 初始化
17
+ * @param cnName 中文名称
18
+ * @param minigameID 小游戏ID
19
+ */
20
+ public static async init(cnName: string, minigameID: number) {
18
21
  var platform = GameAnalyticsPlatform.XiaomiTv;//平台由sdk处理
19
22
  var appItem = GameAnalytics.getAppItem(platform);
20
- var contentId = InternalUitl.getChineseInitials(cnName);
23
+ var contentId = minigameID.toString();//InternalUitl.getChineseInitials(cnName);
21
24
  await ToastManager.Inst.init();
22
25
  TvUi.init({
23
26
  cpId: contentId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drgame-cc",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",