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

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

parent 4b21d563
......@@ -14,8 +14,8 @@ public class ZXADConfig
}
}
public const int ZXAD_VC = 138;
public const string ZXAD_VN = "1.3.8";
public const int ZXAD_VC = 139;
public const string ZXAD_VN = "1.3.9";
public const string ADManagerTAG = "AdManager";
public const string PLANTFORM_AD_TT = "chuanshanjia"; //穿山甲
......
......@@ -82,7 +82,6 @@ public class ZXHCRewardAdUtil
public void OnAdLoaded()
{
Debug.unityLogger.Log("ZXHC OnAdLoaded");
EventUtils.onEventPullSuccess(entity);
adUtil.SetRewardVideoAd(entity.codeGroup + entity.slotName, this.rewardVideo);
callback(entity);
......@@ -101,11 +100,13 @@ public class ZXHCRewardAdUtil
private AdEntity entity;
private Action<bool> callback;
private ZXADRewardVideoListener listener;
private bool IsShowError;
public RewardVideoAdListener(AdEntity entity, Action<bool> callback, ZXADRewardVideoListener listener)
{
this.entity = entity;
this.callback = callback;
this.listener = listener;
IsShowError = false;
}
public void OnAdClicked()
......@@ -116,7 +117,10 @@ public class ZXHCRewardAdUtil
public void OnAdClosed()
{
listener.onAdClose(entity);
if (!IsShowError)
{
listener.onAdClose(entity);
}
}
public void OnAdShow()
......@@ -139,6 +143,7 @@ public class ZXHCRewardAdUtil
public void OnVideoError(string error)
{
IsShowError = true;
callback(false);
EventUtils.onEventShowFail(entity);
listener.onError(error);
......
fileFormatVersion: 2
guid: b48c4b5d5dae46b48988c0bfdb795067
guid: 73b7ffac1d582104b828e1edfee542e3
PluginImporter:
externalObjects: {}
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