Commit 061364c8 authored by maxiaoliang's avatar maxiaoliang

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

parent 428e18e1
......@@ -62,11 +62,14 @@ public class EveryDayControl : MonoBehaviour
public void videoGetHeart(int sid)
{
AdUtils.PlayRewardAd("rewardVideo_dayCash", new Action<bool>((adEntity) =>
{
{
if (adEntity)
{
EventUtils.OnEvent("rewardVideo_dayCash", "激励视频_天天提现领取红心");
EventUtils.OnEvent("rewardVideo_all", "激励视频_天天提现领取红心");
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("id", sid);
HttpTool.Instance._Get("app/v1/game/module/receiveHearts", parameters,
......@@ -75,11 +78,13 @@ public class EveryDayControl : MonoBehaviour
if (null != result)
{
//TODO 弹出弹窗
showGetRedHeartDialog(result.awardCoins);
showGetRedHeartDialog(result.awardCoins);
// showHappyDialog(result.awardCoins);
getHeartList();
}
}), 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