drgame-cc 1.0.28 → 1.0.29
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.
|
@@ -9,16 +9,15 @@ import ToastManager from "./toast/ToastManager";
|
|
|
9
9
|
import { InternalUitl } from "./InternalUitl";
|
|
10
10
|
/** 平台适配器,名字有点长防止和Platform,Adapter冲突 */
|
|
11
11
|
export class PlatformAdapter {
|
|
12
|
-
private static readonly cpId = "xhbj";
|
|
13
12
|
private static readonly version = "1.0.0";
|
|
14
13
|
private static readonly designWidth = 1920;
|
|
15
14
|
private static readonly designHeight = 1080;
|
|
16
15
|
/** 初始化
|
|
17
16
|
* @param cnName 中文名称
|
|
18
|
-
* @param minigameID 小游戏ID
|
|
17
|
+
* @param minigameID 小游戏ID,文档地址:https://doc.weixin.qq.com/sheet/e3_AcEAlgaLALsCNiuHzH2NOQGCjVc3a?scode=AOcA0AdfAAoSqmh5BfAQIA6AYEAB4&tab=BB08J2
|
|
19
18
|
*/
|
|
20
19
|
public static async init(cnName: string, minigameID: number) {
|
|
21
|
-
var platform = GameAnalyticsPlatform.XiaomiTv;//平台由sdk
|
|
20
|
+
var platform = GameAnalyticsPlatform.XiaomiTv;//平台由sdk后续处理
|
|
22
21
|
var appItem = GameAnalytics.getAppItem(platform);
|
|
23
22
|
var contentId = minigameID.toString();//InternalUitl.getChineseInitials(cnName);
|
|
24
23
|
await ToastManager.Inst.init();
|