Commit bcd25e03 authored by LiLiuZhou's avatar LiLiuZhou

111

parent c18dd1d8
...@@ -11,9 +11,9 @@ public class LeeTest : MonoBehaviour ...@@ -11,9 +11,9 @@ public class LeeTest : MonoBehaviour
{ {
if (Input.GetKeyDown(KeyCode.R)) if (Input.GetKeyDown(KeyCode.R))
{ {
DialogControl.Instance.NetWorkRequest<CashOutInfo>(true, "/app/v2/cscmnq/info", null,(obj)=> DialogControl.Instance.NetWorkRequest<object>(false, "app/v2/cscmnq/receive_diamond_by_video", null,(obj)=>
{ {
Debug.LogError(obj.wdDataList.Count);
}); });
} }
} }
......
...@@ -531,22 +531,21 @@ public class DialogControl : MonoBehaviour ...@@ -531,22 +531,21 @@ public class DialogControl : MonoBehaviour
{ {
Debug.LogError("Unity发生错误,将在60秒内重启"); Debug.LogError("Unity发生错误,将在60秒内重启");
// app / v2 / cscmnq / first_info
//Lee
//closeDiamondDialog(); //closeDiamondDialog();
closeDiamondDialog(); closeDiamondDialog();
AudioUtils.ins.PlayBtnAudio(); AudioUtils.ins.PlayBtnAudio();
EventUtils.OnEvent("addDiamond_click", "点击钻石加号"); EventUtils.OnEvent("addDiamond_click", "点击钻石加号");
HttpTool.Instance._Get("app/v1/wdlc/reward/diamond_by_video_status", null, new Action<DiamondStatusBean>((bean) => HttpTool.Instance._Get("app/v2/cscmnq/diamond_by_video_status", null, new Action<DiamondStatusBean>((bean) =>
{ {
DiamondplayNum = bean.playNum; DiamondplayNum = bean.playNum;
if (DiamondplayNum > 0) if (DiamondplayNum > 0)
{ {
print(1);
rdp.Show(bean.playNum); rdp.Show(bean.playNum);
} }
else else
{ {
print(2);
ToastPlugin.ToastHelper.ShowToast("次数不足,明日再来吧"); ToastPlugin.ToastHelper.ShowToast("次数不足,明日再来吧");
} }
...@@ -555,9 +554,6 @@ public class DialogControl : MonoBehaviour ...@@ -555,9 +554,6 @@ public class DialogControl : MonoBehaviour
Debug.unityLogger.Log("领取钻石 请求失败" + code + errMsg); Debug.unityLogger.Log("领取钻石 请求失败" + code + errMsg);
})); }));
} }
...@@ -842,9 +838,9 @@ public class DialogControl : MonoBehaviour ...@@ -842,9 +838,9 @@ public class DialogControl : MonoBehaviour
public void closeReceiveDiamondDialog() public void closeReceiveDiamondDialog()
{ {
receivediamond.SetActive(false); receivediamond.SetActive(false);
EventCenter.Broadcast(MyEventType.FlyDiamond); EventCenter.Broadcast(MyEventType.FlyDiamond);
EventCenter.Broadcast(MyEventType.RefreshHomeInfo); EventCenter.Broadcast(MyEventType.RefreshHomeInfo);
} }
//签到奖励 //签到奖励
...@@ -1033,6 +1029,8 @@ public class DialogControl : MonoBehaviour ...@@ -1033,6 +1029,8 @@ public class DialogControl : MonoBehaviour
} }
} }
#region ShowClose
public void showTaoxinDialog(int rewardcount) public void showTaoxinDialog(int rewardcount)
{ {
EventUtils.OnEvent("happy_get_dialog"); EventUtils.OnEvent("happy_get_dialog");
...@@ -1229,6 +1227,7 @@ public class DialogControl : MonoBehaviour ...@@ -1229,6 +1227,7 @@ public class DialogControl : MonoBehaviour
})); }));
} }
#endregion
public void LookvideoGetDiamond() public void LookvideoGetDiamond()
{ {
...@@ -1236,10 +1235,12 @@ public class DialogControl : MonoBehaviour ...@@ -1236,10 +1235,12 @@ public class DialogControl : MonoBehaviour
{ {
if (cb) if (cb)
{ {
HttpTool.Instance._Post("app/v1/wdlc/reward/receive_diamond_by_video", null, new Action<RewardData>((bean) => HttpTool.Instance._Post("app/v2/cscmnq/receive_diamond_by_video", null, new Action<RewardData>((bean) =>
{ {
showReceiveDiamondDialog(PlayerDataControl.Instance.diamondByVideoRewardNum.ToString()); //Lee
showReceiveDiamondDialog(DiamondplayNum.ToString());
rdp.Hide(); rdp.Hide();
// EventCenter.Broadcast(MyEventType.UPDATE_CAR_LIST_DATA); // EventCenter.Broadcast(MyEventType.UPDATE_CAR_LIST_DATA);
}), new Action<string, string>((code, errMsg) => }), new Action<string, string>((code, errMsg) =>
{ {
......
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