少年修仙传客户端代码仓库
client_Hale
2019-02-01 8252868682262eb987c532df0c6b911a5cf5e402
382 客户端方发起的发送注册埋点逻辑
2个文件已修改
32 ■■■■ 已修改文件
Core/SDK/SDKUtility.cs 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SDKUtilityWrap.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/SDK/SDKUtility.cs
@@ -4,6 +4,7 @@
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System;
[XLua.LuaCallCSharp]
public class SDKUtility : SingletonMonobehaviour<SDKUtility>
@@ -1061,6 +1062,19 @@
    {
        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);
@@ -1085,11 +1099,17 @@
        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)
Lua/Gen/SDKUtilityWrap.cs
@@ -774,8 +774,10 @@
            
                
                {
                    bool __ok = LuaAPI.lua_toboolean(L, 2);
                    string __result = LuaAPI.lua_tostring(L, 3);
                    
                    gen_to_be_invoked.SendRegistEvent(  );
                    gen_to_be_invoked.SendRegistEvent( __ok, __result );