Commit 061364c8 authored by maxiaoliang's avatar maxiaoliang

天天提现判断看了广告才给奖励

parent 428e18e1
...@@ -62,11 +62,14 @@ public class EveryDayControl : MonoBehaviour ...@@ -62,11 +62,14 @@ public class EveryDayControl : MonoBehaviour
public void videoGetHeart(int sid) public void videoGetHeart(int sid)
{ {
AdUtils.PlayRewardAd("rewardVideo_dayCash", new Action<bool>((adEntity) => AdUtils.PlayRewardAd("rewardVideo_dayCash", new Action<bool>((adEntity) =>
{
if (adEntity)
{ {
EventUtils.OnEvent("rewardVideo_dayCash", "激励视频_天天提现领取红心"); EventUtils.OnEvent("rewardVideo_dayCash", "激励视频_天天提现领取红心");
EventUtils.OnEvent("rewardVideo_all", "激励视频_天天提现领取红心"); EventUtils.OnEvent("rewardVideo_all", "激励视频_天天提现领取红心");
Dictionary<string, object> parameters = new Dictionary<string, object>(); Dictionary<string, object> parameters = new Dictionary<string, object>();
Debug.Log("Adcode"+AdUtils.getCurrentAdEntity().codeId); Debug.Log("Adcode" + AdUtils.getCurrentAdEntity().codeId);
parameters.Add("adCode", AdUtils.getCurrentAdEntity().codeId); parameters.Add("adCode", AdUtils.getCurrentAdEntity().codeId);
parameters.Add("id", sid); parameters.Add("id", sid);
HttpTool.Instance._Get("app/v1/game/module/receiveHearts", parameters, HttpTool.Instance._Get("app/v1/game/module/receiveHearts", parameters,
...@@ -80,6 +83,8 @@ public class EveryDayControl : MonoBehaviour ...@@ -80,6 +83,8 @@ public class EveryDayControl : MonoBehaviour
getHeartList(); getHeartList();
} }
}), new Action<string, string>((code, mes) => { })); }), new Action<string, string>((code, mes) => { }));
}
})); }));
......
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