少年修仙传客户端代码仓库
hch
2025-06-11 8aba1acbe8cc96a099a748cd8e4f3c0cce013e77
0312 输出测试
3个文件已修改
27 ■■■■■ 已修改文件
Core/NetworkPackage/DTCFile/ServerPack/H01_System/DTC0101_tagServerPrepared.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/SDK/ynmbxxjUtil.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Login/LoginModel.cs 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/H01_System/DTC0101_tagServerPrepared.cs
@@ -12,11 +12,11 @@
        base.Done(vNetPack);
        var vNetData = vNetPack as H0101_tagServerPrepared;
        DebugEx.LogFormat("DTC0101_tagServerPrepared Done");
        Debug.LogFormat("DTC0101_tagServerPrepared Done");
        switch (vNetData.socketType)
        {
            case ServerType.Main:
                DebugEx.LogFormat("DTC0101_tagServerPrepared Done Main");
                Debug.LogFormat("DTC0101_tagServerPrepared Done Main");
                ModelCenter.Instance.GetModel<LoginModel>().AccessLogin(vNetData);
                break;
            case ServerType.CrossSever:
Core/SDK/ynmbxxjUtil.cs
@@ -467,9 +467,12 @@
    public void HandleMsgWithSDK(string jsonString)
    {
        Debug.Log("收到SDK发来的信息: " + jsonString);
        Debug.Log("rec sdk msg : " + jsonString);
        var _json = JsonMapper.ToObject(jsonString);
        var _code = (int)_json["code"];
        Debug.Log("recv SDK : " + _code);
        switch (_code)
        {
            case CodeA2U.DeviceInfo:
@@ -601,6 +604,7 @@
                    values["af_registration_method"] = _json["reg_type"];
                break;
            case CodeA2U.FreePlatformLoginOk:
                Debug.Log("HandleFreePlatformLoginOk");
                HandleFreePlatformLoginOk(_json["info"]);
                OperationLogCollect.Instance.RecordEvent(6);
                break;
@@ -1234,8 +1238,7 @@
    {
        BuildFreePlatformInfo(data);
        DebugEx.LogFormat("sdk login ok data:{0}", data.ToJson());
        DebugEx.Log("sdk login ok!!!!!!!!!!!!!!!!!!!!!!!1");
        Debug.LogFormat("sdk login ok data:{0}", data.ToJson());
        if (onFreePlatformLoginOk != null)
        {
            DebugEx.Log("!!!!!!!!!!!!!!!!onFreePlatformLoginOk");
System/Login/LoginModel.cs
@@ -81,21 +81,21 @@
        private void OnSDKAccountLoginOk(ynmbxxjUtil.FP_LoginOk _result)
        {
            DebugEx.Log("OnSDKAccountLoginOk 111111111111111");
            Debug.Log("OnSDKAccountLoginOk 111111111111111");
            sdkLogined = true;
            sdkLoginResult = _result;
            DebugEx.Log("OnSDKAccountLoginOk 222222222");
            Debug.Log("OnSDKAccountLoginOk 222222222");
            if (!DebugUtility.Instance.isWhiteListAccount)
            {
                DebugUtility.Instance.RequestWhiteListAuthority(sdkLoginResult.account);
            }
            DebugEx.Log("OnSDKAccountLoginOk 333333333");
            Debug.Log("OnSDKAccountLoginOk 333333333");
            ServerListCenter.Instance.RequestServerListPlayer(sdkLoginResult.account);
            ynmbxxjUtil.Instance.MakeKeyAndVisible();
            OperationLogCollect.Instance.RecordLauchEvent(5);
            DebugEx.LogFormat("SDK login success, account:{0} ; token:{1} ; phone:{2} ; qkUserName:{3}",
            Debug.LogFormat("SDK login success, account:{0} ; token:{1} ; phone:{2} ; qkUserName:{3}",
                               sdkLoginResult.account, sdkLoginResult.token, sdkLoginResult.phone, sdkLoginResult.qkUserName);
            GameNotice.OpenGameNotice();
        }
@@ -288,7 +288,7 @@
                    send.Adult = 1;
                    send.ExtraLen = 0;
                    send.Extra = "";
                    DebugEx.Log("InterTest=====> extra: " + send.Extra);
                    Debug.Log("InterTest=====> extra: " + send.Extra);
                    break;
                case VersionAuthority.Release:
                    send.Extra = VersionConfig.Get().SpID + "|" + ynmbxxjUtil.Instance.Device.uniqueID;
@@ -322,7 +322,7 @@
                    var versionStr = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, "_", deviceInfo);
                    send.Extra += ("|" + versionStr.Substring(0, Math.Min(24, versionStr.Length)));
                    DebugEx.Log("Release=====> extra: " + send.Extra);
                    Debug.Log("Release=====> extra: " + send.Extra);
                    send.ExtraLen = (ushort)send.Extra.Length;
                    send.MAC = DeviceUtility.GetMac();
                    send.Version = _serverInfo.Version;
@@ -350,7 +350,7 @@
                    }
                    break;
            }
            DebugEx.LogFormat("C0101_tagCPlayerLogin: IDType:{0}, AccID:{1}, Extra:{2}", send.IDType, send.AccID, send.Extra);
            Debug.LogFormat("C0101_tagCPlayerLogin: IDType:{0}, AccID:{1}, Extra:{2}", send.IDType, send.AccID, send.Extra);
            return send;
        }