drgame-cc 1.0.19 → 1.0.20

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,
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.20",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",