drgame-cc 1.0.64 → 1.0.65

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.
@@ -161,7 +161,7 @@ class AdSdkImpl implements IAdSdk {
161
161
  Reporter.reportAppStart();
162
162
 
163
163
  // 尝试拉取账号信息,作为排行榜/玩家数据/数据上报的默认 userId(失败则保留默认值)
164
- this._syncUserIdFromAccount();
164
+ await this._syncUserIdFromAccount();
165
165
 
166
166
  console.log('[AdSdk] Lifecycle reporting bound.');
167
167
  }
@@ -105,6 +105,7 @@ const Leaderboard: LeaderboardLike = {
105
105
 
106
106
  const data: Record<string, any> = {
107
107
  project: this._config.project,
108
+ gamePlatform: this._config.platform || 'lewo',
108
109
  platform: this._config.platform || 'lewo',
109
110
  timestamp: Date.now(),
110
111
  time: this._formatTime(new Date()),
@@ -126,6 +127,7 @@ const Leaderboard: LeaderboardLike = {
126
127
  project: this._config.project,
127
128
  userId: this._config.user_id,
128
129
  point: params.point || 0,
130
+ gamePlatform: this._config.platform || 'lewo',
129
131
  platform: this._config.platform || 'lewo',
130
132
  };
131
133
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drgame-cc",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",