drgame-cc 1.0.31 → 1.0.32

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.
@@ -85,7 +85,7 @@ export default class GameAnalytics {
85
85
  Reporter.init({
86
86
  report_url: REPORT_URL,
87
87
  app_item: config.app_item || this.getAppItem(platform),
88
- content_type: config.content_type || "独立游戏",
88
+ content_type: config.content_type || "游戏",
89
89
  content_id: config.content_id || "rexueqiangshou",
90
90
  content_title: config.content_title || "热血枪手",
91
91
  });
@@ -65,7 +65,7 @@ export class PlatformAdapter {
65
65
  GameAnalytics.init({
66
66
  platform: GameAnalyticsPlatform.XiaomiTv,
67
67
  app_item: appItem,
68
- content_type: "独立游戏", // 游戏(乐窝的游戏,这个字段都固定上报游戏)
68
+ content_type: "游戏", // 游戏(乐窝的游戏,这个字段都固定上报游戏)
69
69
  content_id: contentId, // 游戏ID(具体乐窝的游戏ID)
70
70
  content_title: cnName, // 游戏名(具体的乐窝游戏名)
71
71
  });
@@ -170,9 +170,9 @@ Reporter.resetDeviceId(); // 重置设备ID
170
170
  | `content_type` | 内容类型(默认"游戏") | init 时设置 |
171
171
  | `content_id` | 游戏 ID | init 时设置 |
172
172
  | `content_title` | 游戏名 | init 时设置 |
173
- | `element_position` | 元素位置(埋点范围表对应的元素位置列) | 可选 |
173
+ | `element_position` | 元素位置(埋点范围表对应的元素位置列) | 必填 |
174
174
  | `action_type` | 行为类型:曝光/点击 | 默认"曝光" |
175
- | `event_name` | 具体事件名(通过元素位置和行为生成事件名字) | 必填 |
175
+ | `event_name` | 具体事件名(通过元素位置和行为生成事件名字) | 选填 |
176
176
  | `ad_request_id` | 广告请求 ID | 广告事件必填 |
177
177
  | `event_time` | 客户端事件时间(yyyy-MM-dd HH:mm:ss) | 自动生成 |
178
178
 
@@ -58,7 +58,7 @@ var Reporter = {
58
58
  // 缓存公共字段
59
59
  this._commonInfo = {
60
60
  app_item: config.app_item || '',
61
- content_type: config.content_type || '独立游戏',
61
+ content_type: config.content_type || '游戏',
62
62
  content_id: config.content_id || '',
63
63
  content_title: config.content_title || '',
64
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drgame-cc",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",