drgame-cc 1.0.30 → 1.0.31

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.
@@ -92,7 +92,7 @@ export default class GameAnalytics {
92
92
  this.initialized = true;
93
93
  if (config.user_id !== undefined) this.setUserId(config.user_id);
94
94
  var httpReq = new XMLHttpRequest();
95
- httpReq.open("GET", 'https://sup.daoran.tv/bi-api/api/config/get');
95
+ httpReq.open("POST", 'https://sup.daoran.tv/bi-api/api/config/get');
96
96
  httpReq.setRequestHeader("Content-Type", "application/json");
97
97
  httpReq.setRequestHeader("Accept", "application/json");
98
98
  httpReq.send();
@@ -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
  });
@@ -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.30",
3
+ "version": "1.0.31",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",