drgame-cc 1.0.20 → 1.0.22

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.
package/drscript/Info.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import TvUi from "./core/TvUi";
2
+ import { AnalyticsAction, AnalyticsEvent } from "./GameAnalytics";
3
+ import { PlatformAdapter } from "./PlatformAdapter";
2
4
  import ToastManager from "./toast/ToastManager";
3
5
 
4
6
 
@@ -42,6 +44,7 @@ export function showRewardVideo(scene: string, rewardType: string, callback: Fun
42
44
  };
43
45
  let onSuccess = () => {
44
46
  try {
47
+ PlatformAdapter.report(AnalyticsEvent.RewardVideoAd, AnalyticsAction.Exposure);
45
48
  callback && callback.call(target);
46
49
  }
47
50
  finally {
@@ -66,7 +66,7 @@ export class PlatformAdapter {
66
66
  app_item: appItem,
67
67
  content_type: "游戏", // 游戏(乐窝的游戏,这个字段都固定上报游戏)
68
68
  content_id: contentId, // 游戏ID(具体乐窝的游戏ID)
69
- content_title: znName, // 游戏名(具体的乐窝游戏名)
69
+ content_title: cnName, // 游戏名(具体的乐窝游戏名)
70
70
  });
71
71
 
72
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drgame-cc",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "道然游戏适配包",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",