| | |
| | | { |
| | | [SerializeField] InputField input; |
| | | [SerializeField] Button receiveBtn; |
| | | const string exchangeUrl = "http://gamecenter.secondworld.net.cn:53003/Coupon/CouponCode.php?"; |
| | | const string exchangeUrl = "http://xssgcenter.secondworld.net.cn:53003/Coupon/CouponCode.php?"; |
| | | bool isCool = false; |
| | | float time = 0; |
| | | |
| | |
| | | tables["channel"] = VersionConfig.Get().appId; |
| | | tables["code"] = passward; |
| | | #if UNITY_EDITOR |
| | | //tables["accid"] = ModelCenter.Instance.GetModel<LoginModel>().accountBuf; |
| | | tables["accid"] = LoginManager.Instance.accountBuf; |
| | | tables["accid"] = PlayerDatas.Instance.baseData.AccID; |
| | | #else |
| | | //tables["accid"] = ynmbxxjUtil.Instance.FreePlatformInfo.account; |
| | | tables["accid"] = SDKUtils.Instance.FreePlatformInfo.account; |
| | | #endif |
| | | tables["sid"] = ServerListCenter.Instance.currentServer.region_flag.ToString(); |
| | | tables["pushurl"] = ServerListCenter.Instance.currentServer.region_domain; |
| | |
| | | tables["roleid"] = UIHelper.ServerStringTrim(PlayerDatas.Instance.baseData.PlayerName); |
| | | tables["level"] = PlayerDatas.Instance.baseData.LV.ToString(); |
| | | tables["viplevel"] = PlayerDatas.Instance.baseData.VIPLv.ToString(); |
| | | HttpRequest.Instance.RequestHttpGet(StringUtility.Contact(exchangeUrl, HttpRequest.HashtablaToString(tables)), HttpRequest.defaultHttpContentType, 1, null); |
| | | HttpRequest.Instance.RequestHttpGet(StringUtility.Concat(exchangeUrl, HttpRequest.HashtablaToString(tables)), HttpRequest.defaultHttpContentType, 1, null); |
| | | } |
| | | // if (passward.Length > 1) |
| | | // { |