Commit 9add2a8b authored by zhangzhe's avatar zhangzhe

首次加载开屏广告倒序,我的礼包按钮加按下效果和埋点

parent 5201ca0f
fileFormatVersion: 2
guid: 62d1c1fa98be64555b74d41268d96b0a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
...@@ -246,6 +246,15 @@ public class AdManager ...@@ -246,6 +246,15 @@ public class AdManager
Debug.unityLogger.Log(ZXADConfig.ADManagerTAG, "Splash没有广告数据"); Debug.unityLogger.Log(ZXADConfig.ADManagerTAG, "Splash没有广告数据");
return; return;
} }
// 首次启动时倒序加载
if (PlayerPrefs.GetInt("isFirstLoadSplashAd") != 1)
{
adList.Reverse();
PlayerPrefs.SetInt("isFirstLoadSplashAd", 1);
}
List<AdEntity> totalEntityList = adList; List<AdEntity> totalEntityList = adList;
AdEntity entity = totalEntityList[0]; AdEntity entity = totalEntityList[0];
entity.actionName = "开屏"; entity.actionName = "开屏";
......
...@@ -235,7 +235,7 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View ...@@ -235,7 +235,7 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
mPresenter.GetHomeInfo(); mPresenter.GetHomeInfo();
mPresenter.GetLandList(); mPresenter.GetLandList();
transform.Find("Title/shiwujiangli").gameObject.AddComponent<Button>().onClick.AddListener(DidSelectedShiwujiangli); transform.Find("Title/shiwujiangli/Image").gameObject.AddComponent<Button>().onClick.AddListener(DidSelectedShiwujiangli);
} }
private void refreshHomeInfo() private void refreshHomeInfo()
{ {
...@@ -686,6 +686,8 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View ...@@ -686,6 +686,8 @@ public class HomeInfoControl : MonoBehaviour, HomeContract.View
{ {
AudioUtils.ins.PlayBtnAudio(); AudioUtils.ins.PlayBtnAudio();
EventUtils.OnEvent("click_wodelibao", "点击我的礼包");
if (RealAwardsVM.dataModel != null) if (RealAwardsVM.dataModel != null)
{ {
if (RealAwardsVM.didChooseAward) if (RealAwardsVM.didChooseAward)
......
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