| | |
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SDKUtility : SingletonMonobehaviour<SDKUtility>
|
| | |
| | | {
|
| | | BuildFreePlatformInfo(data);
|
| | |
|
| | | string _url = StringUtility.Contact("http://pub.game.2460web.com:11000/event_receiver?ProductID=snxxz",
|
| | | "&OperatorID=", VersionConfig.Get().appId,
|
| | | "&RegionName=data&RegionID=0&EventID=1105&Time=",
|
| | | DateTime.Now.ToString(),
|
| | | "&AccountID=", FreePlatformInfo.account);
|
| | |
|
| | | if (DebugUtility.Instance.debugAccount)
|
| | | {
|
| | | Debug.Log("请求注册埋点的地址数据: " + _url);
|
| | | }
|
| | |
|
| | | HttpRequest.Instance.RequestHttpGet(_url, HttpRequest.defaultHttpContentType, 1, SendRegistEvent);
|
| | |
|
| | | if (onFreePlatformLoginOk != null)
|
| | | {
|
| | | onFreePlatformLoginOk(FreePlatformInfo);
|
| | |
| | | SendMessageToSDK(m_Json);
|
| | | }
|
| | |
|
| | | public void SendRegistEvent()
|
| | | public void SendRegistEvent(bool _ok, string _result)
|
| | | {
|
| | | m_Json.Clear();
|
| | | m_Json["code"] = CodeU2A.SendRegistEvent;
|
| | | SendMessageToSDK(m_Json);
|
| | | if (_ok)
|
| | | {
|
| | | if (!_result.Equals("0"))
|
| | | {
|
| | | m_Json.Clear();
|
| | | m_Json["code"] = CodeU2A.SendRegistEvent;
|
| | | SendMessageToSDK(m_Json);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public void CreateRoleOk(string roleID, string roleName, string time)
|