Commit 3e40dba3 authored by 王雪伟's avatar 王雪伟

更新汇川广告,广告sdk到139版本

parent 4b21d563
...@@ -14,8 +14,8 @@ public class ZXADConfig ...@@ -14,8 +14,8 @@ public class ZXADConfig
} }
} }
public const int ZXAD_VC = 138; public const int ZXAD_VC = 139;
public const string ZXAD_VN = "1.3.8"; public const string ZXAD_VN = "1.3.9";
public const string ADManagerTAG = "AdManager"; public const string ADManagerTAG = "AdManager";
public const string PLANTFORM_AD_TT = "chuanshanjia"; //穿山甲 public const string PLANTFORM_AD_TT = "chuanshanjia"; //穿山甲
......
...@@ -82,7 +82,6 @@ public class ZXHCRewardAdUtil ...@@ -82,7 +82,6 @@ public class ZXHCRewardAdUtil
public void OnAdLoaded() public void OnAdLoaded()
{ {
Debug.unityLogger.Log("ZXHC OnAdLoaded");
EventUtils.onEventPullSuccess(entity); EventUtils.onEventPullSuccess(entity);
adUtil.SetRewardVideoAd(entity.codeGroup + entity.slotName, this.rewardVideo); adUtil.SetRewardVideoAd(entity.codeGroup + entity.slotName, this.rewardVideo);
callback(entity); callback(entity);
...@@ -101,11 +100,13 @@ public class ZXHCRewardAdUtil ...@@ -101,11 +100,13 @@ public class ZXHCRewardAdUtil
private AdEntity entity; private AdEntity entity;
private Action<bool> callback; private Action<bool> callback;
private ZXADRewardVideoListener listener; private ZXADRewardVideoListener listener;
private bool IsShowError;
public RewardVideoAdListener(AdEntity entity, Action<bool> callback, ZXADRewardVideoListener listener) public RewardVideoAdListener(AdEntity entity, Action<bool> callback, ZXADRewardVideoListener listener)
{ {
this.entity = entity; this.entity = entity;
this.callback = callback; this.callback = callback;
this.listener = listener; this.listener = listener;
IsShowError = false;
} }
public void OnAdClicked() public void OnAdClicked()
...@@ -115,9 +116,12 @@ public class ZXHCRewardAdUtil ...@@ -115,9 +116,12 @@ public class ZXHCRewardAdUtil
} }
public void OnAdClosed() public void OnAdClosed()
{
if (!IsShowError)
{ {
listener.onAdClose(entity); listener.onAdClose(entity);
} }
}
public void OnAdShow() public void OnAdShow()
{ {
...@@ -139,6 +143,7 @@ public class ZXHCRewardAdUtil ...@@ -139,6 +143,7 @@ public class ZXHCRewardAdUtil
public void OnVideoError(string error) public void OnVideoError(string error)
{ {
IsShowError = true;
callback(false); callback(false);
EventUtils.onEventShowFail(entity); EventUtils.onEventShowFail(entity);
listener.onError(error); listener.onError(error);
......
fileFormatVersion: 2 fileFormatVersion: 2
guid: b48c4b5d5dae46b48988c0bfdb795067 guid: 73b7ffac1d582104b828e1edfee542e3
PluginImporter: PluginImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment