Explorar o código

增加广告log

kaka %!s(int64=4) %!d(string=hai) anos
pai
achega
d614e6995c

+ 1 - 1
assets/script/game/data/HttpData.ts

@@ -5,7 +5,7 @@
 export class HttpData {
 
     /** 服务器类型 0测试服 1正式服 2李扬服 3悍国服 */
-    public serverType: number = 1;
+    public serverType: number = 0;
 
     public getServerUrl(): string {
         switch (this.serverType) {

+ 5 - 0
assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATInterstitial.ts

@@ -194,6 +194,11 @@ export default class ATInterstitial extends zgSingleton {
             this.loadInter(0);
         }
     }
+
+    onInterstitialAdFailedToPlayVideo(placementId, errorInfo) {
+        mk.console.logSingle('onInterstitialAdFailedToPlayVideo  placementId >> ', placementId);
+        mk.console.logSingle('onInterstitialAdFailedToPlayVideo  ', errorInfo);
+    }
 }
 
 

+ 4 - 1
assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATInterstitialJS.js

@@ -65,7 +65,7 @@ var ATInterstitialJS = cc.Class({
      * @returns 
      */
     onInterstitialAdLoadFail: function (placementId, errorInfo) {
-        ATJSSDK.printLog("===[AnyThinkInterstitialDemo::onInterstitialAdLoadFail(" + placementId + ", " + errorInfo + ")");   
+        ATJSSDK.printLog("===[AnyThinkInterstitialDemo::onInterstitialAdLoadFail(" + placementId + ", " + errorInfo + ")");
         if (this.proxy == null) return;
         this.proxy.onInterstitialAdLoadFail(placementId, errorInfo);
     },
@@ -98,6 +98,7 @@ var ATInterstitialJS = cc.Class({
      * @param {*} callbackInfo 回调信息
      */
     onInterstitialAdEndPlayingVideo: function (placementId, callbackInfo) {
+
         // ATJSSDK.printLog("AnyThinkInterstitialDemo::onInterstitialAdEndPlayingVideo("  + placementId + ", " + callbackInfo + ")");
     },
 
@@ -108,6 +109,8 @@ var ATInterstitialJS = cc.Class({
      */
     onInterstitialAdFailedToPlayVideo: function (placementId, errorInfo) {
         // ATJSSDK.printLog("AnyThinkInterstitialDemo::onInterstitialAdFailedToPlayVideo(" + placementId + ", " + errorInfo + ")");
+        if (this.proxy == null) return;
+        this.proxy.onInterstitialAdFailedToPlayVideo(placementId, errorInfo);
     },
 
     /**

+ 3 - 1
assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATRewardVideo.ts

@@ -132,7 +132,9 @@ export class ATRewardVideo extends zgSingleton {
      * @param callbackInfo 回调信息
      */
     onRewardedVideoAdPlayFailed(placementId, errorInfo, callbackInfo) {
-        //ATJSSDK.printLog("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed(" + placementId + ", " + errorInfo + ", " + callbackInfo + ")");
+        mk.console.log("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed placementId >> ", placementId);
+        mk.console.log("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed errorInfo ", errorInfo);
+        mk.console.log("AnyThinkRewardedVideoDemo::onRewardedVideoAdPlayFailed callbackInfo ", callbackInfo);
         let data = JSON.parse(callbackInfo)
         gData.adData.updateADLog(5, placementId, data);
         ATSDKMgr.getInstance().watchVideoAdCallBack(AdPlayStateType.PlayFail);

+ 1 - 1
assets/script/mk/utils/LogUtil.ts

@@ -9,7 +9,7 @@ export default class LogUtil {
      * 是否显示Log
      * @description
      */
-    public ifShowLog: boolean = false;
+    public ifShowLog: boolean = true;
 
     /**
      * 标签符号

BIN=BIN
build/jsb-link/assets/main/index.jsc


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
build/jsb-link/assets/resources/config.json


+ 9 - 3
build/jsb-link/js backups (useful for debugging)/main.index.js

@@ -595,7 +595,9 @@ null != this.proxy && this.proxy.onInterstitialAdShow(t, e);
 },
 onInterstitialAdStartPlayingVideo: function() {},
 onInterstitialAdEndPlayingVideo: function() {},
-onInterstitialAdFailedToPlayVideo: function() {},
+onInterstitialAdFailedToPlayVideo: function(t, e) {
+null != this.proxy && this.proxy.onInterstitialAdFailedToPlayVideo(t, e);
+},
 onInterstitialAdFailedToShow: function() {},
 onInterstitialAdClose: function(t, e) {
 null != this.proxy && this.proxy.onInterstitialAdClose(t, e);
@@ -715,6 +717,10 @@ gData.adData.updateADLog(8, t, n);
 this.loadInter(1);
 } else this.loadInter(0);
 };
+e.prototype.onInterstitialAdFailedToPlayVideo = function(t, e) {
+mk.console.logSingle("onInterstitialAdFailedToPlayVideo  placementId >> ", t);
+mk.console.logSingle("onInterstitialAdFailedToPlayVideo  ", e);
+};
 return e;
 }(r.zgSingleton);
 n.default = s;
@@ -10655,7 +10661,7 @@ value: !0
 n.ServerUrl = n.HttpData = void 0;
 var o, i = function() {
 function t() {
-this.serverType = 1;
+this.serverType = 0;
 }
 t.prototype.getServerUrl = function() {
 switch (this.serverType) {
@@ -11222,7 +11228,7 @@ value: !0
 n.LogTagColor = void 0;
 var i, a = function() {
 function t() {
-this.ifShowLog = !1;
+this.ifShowLog = !0;
 this._tagChar = "...";
 this._frontChar = "    ";
 this._keyValueChar = " = ";

+ 2 - 2
packages-hot-update/cfg.json

@@ -13,7 +13,7 @@
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminateTestT/baseRemote/",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminateTest/baseRemoteTest/"
     ],
-    "buildTime": 1629166380928,
-    "genTime": 1629166380928,
+    "buildTime": 1629180651937,
+    "genTime": 1629180651937,
     "genVersion": null
 }

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio