From 90cd57232249a6d6ea2f69b373a432d0a9157883 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期一, 17 九月 2018 16:26:31 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Welfare/AwardExchangeWin.cs | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/System/Welfare/AwardExchangeWin.cs b/System/Welfare/AwardExchangeWin.cs
index 8aa72f8..bdec825 100644
--- a/System/Welfare/AwardExchangeWin.cs
+++ b/System/Welfare/AwardExchangeWin.cs
@@ -1,4 +1,5 @@
锘縰sing System;
+using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
@@ -8,7 +9,7 @@
{
[SerializeField] InputField input;
[SerializeField] Button receiveBtn;
-
+ const string exchangeUrl = "http://center.2460web.com:53003/Coupon/CouponCode.php?";
protected override void BindController()
{
@@ -35,7 +36,7 @@
protected override void OnAfterClose()
{
-
+
}
private void InitUI()
@@ -51,7 +52,16 @@
SysNotifyMgr.Instance.ShowTip("InputExchangeCode");
return;
}
+ else
+ {
+ var tables = new Dictionary<string, string>();
+ tables["channel"] = VersionConfig.Get().appId;
+ tables["code"] = passward;
+ tables["accid"] = SDKUtility.Instance.FreePlatformInfo.account;
+ tables["sid"] = ServerListCenter.Instance.currentServer.region_flag.ToString();
+ tables["pushurl"] = ServerListCenter.Instance.currentServer.region_domain;
+ HttpRequest.Instance.RequestHttpGet(StringUtility.Contact(exchangeUrl, HttpRequest.HashtablaToString(tables)), HttpRequest.defaultHttpContentType, 1, null);
+ }
}
-
}
}
--
Gitblit v1.8.0