drgame-cc 1.0.19 → 1.0.21

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.
@@ -14,10 +14,10 @@ export class PlatformAdapter {
14
14
  private static readonly designWidth = 1920;
15
15
  private static readonly designHeight = 1080;
16
16
  /** 初始化 */
17
- public static async init(znName: string) {
17
+ public static async init(cnName: string) {
18
18
  var platform = GameAnalyticsPlatform.XiaomiTv;//平台由sdk处理
19
19
  var appItem = GameAnalytics.getAppItem(platform);
20
- var contentId = Util.getChineseInitials(znName);
20
+ var contentId = Util.getChineseInitials(cnName);
21
21
  await ToastManager.Inst.init();
22
22
  TvUi.init({
23
23
  cpId: contentId,
@@ -66,7 +66,7 @@ export class PlatformAdapter {
66
66
  app_item: appItem,
67
67
  content_type: "游戏", // 游戏(乐窝的游戏,这个字段都固定上报游戏)
68
68
  content_id: contentId, // 游戏ID(具体乐窝的游戏ID)
69
- content_title: znName, // 游戏名(具体的乐窝游戏名)
69
+ content_title: cnName, // 游戏名(具体的乐窝游戏名)
70
70
  });
71
71
 
72
72
  }
package/drscript/Util.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { pinyin } from "../node_modules/pinyin-pro/types/index";
1
+ import { pinyin } from "pinyin-pro";
2
2
 
3
3
  export class Util {
4
4
  public static getChineseInitials(str: string): string {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drgame-cc",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",