drgame-cc 1.0.57 → 1.0.58

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.
@@ -31,21 +31,22 @@ export class PlatformAdapter {
31
31
  * @param minigameID 小游戏ID
32
32
  * @param focusIcon 焦点的样式
33
33
  */
34
- public static async init(cnName: string, minigameID: number, focusIcon: FingerStyle) {
34
+ public static async init(cnName: string, minigameID: number, focusIcon: FingerStyle = FingerStyle.Default) {
35
35
  // ── 初始化渠道类型 ──
36
36
  this.appItem = PlatformUtil.getUrlParam('item') as EAppItem || EAppItem.LeWo;
37
37
  this.isVIP = PlatformUtil.getUrlParam('isVIP') === '1';
38
38
  this.cpId = 'cp_001';
39
+ this.contentId = minigameID.toString();
40
+
41
+ // ── 初始化广告 SDK ──
42
+ await this.initAdSdk(cnName);
39
43
 
40
44
  // ── UI 初始化 ──
41
45
  this.focus.setFocusStyle(focusIcon);
42
46
  UIAdapter._zhName = cnName;
43
47
  await UIAdapter.init();
44
48
 
45
- this.contentId = minigameID.toString();
46
49
 
47
- // ── 初始化广告 SDK ──
48
- await this.initAdSdk(cnName);
49
50
  }
50
51
 
51
52
  // ========================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drgame-cc",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",