少年修仙传客户端代码仓库
hch
2025-06-11 828fce8b7d59bf10b52fe52dcf0596bcefb0f9b9
0312 删除输出
3个文件已修改
26 ■■■■■ 已修改文件
Core/NetworkPackage/DTCFile/ServerPack/H01_System/DTC0101_tagServerPrepared.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/SDK/ynmbxxjUtil.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Login/LoginModel.cs 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/H01_System/DTC0101_tagServerPrepared.cs
@@ -15,7 +15,6 @@
        switch (vNetData.socketType)
        {
            case ServerType.Main:
                Debug.LogFormat("DTC0101_tagServerPrepared Done Main");
                ModelCenter.Instance.GetModel<LoginModel>().AccessLogin(vNetData);
                break;
            case ServerType.CrossSever:
Core/SDK/ynmbxxjUtil.cs
@@ -471,8 +471,6 @@
        var _json = JsonMapper.ToObject(jsonString);
        var _code = (int)_json["code"];
        Debug.Log("recv SDK : " + _code);
        switch (_code)
        {
            case CodeA2U.DeviceInfo:
@@ -604,7 +602,6 @@
                    values["af_registration_method"] = _json["reg_type"];
                break;
            case CodeA2U.FreePlatformLoginOk:
                Debug.Log("HandleFreePlatformLoginOk");
                HandleFreePlatformLoginOk(_json["info"]);
                OperationLogCollect.Instance.RecordEvent(6);
                break;
@@ -1238,10 +1235,8 @@
    {
        BuildFreePlatformInfo(data);
        Debug.LogFormat("sdk login ok data:{0}", data.ToJson());
        if (onFreePlatformLoginOk != null)
        {
            DebugEx.Log("!!!!!!!!!!!!!!!!onFreePlatformLoginOk");
            onFreePlatformLoginOk(FreePlatformInfo);
        }
    }
System/Login/LoginModel.cs
@@ -81,22 +81,16 @@
        private void OnSDKAccountLoginOk(ynmbxxjUtil.FP_LoginOk _result)
        {
            Debug.Log("OnSDKAccountLoginOk 111111111111111");
            sdkLogined = true;
            sdkLoginResult = _result;
            Debug.Log("OnSDKAccountLoginOk 222222222");
            if (!DebugUtility.Instance.isWhiteListAccount)
            {
                DebugUtility.Instance.RequestWhiteListAuthority(sdkLoginResult.account);
            }
            Debug.Log("OnSDKAccountLoginOk 333333333");
            ServerListCenter.Instance.RequestServerListPlayer(sdkLoginResult.account);
            ynmbxxjUtil.Instance.MakeKeyAndVisible();
            OperationLogCollect.Instance.RecordLauchEvent(5);
            Debug.LogFormat("SDK login success, account:{0} ; token:{1} ; phone:{2} ; qkUserName:{3}",
                               sdkLoginResult.account, sdkLoginResult.token, sdkLoginResult.phone, sdkLoginResult.qkUserName);
            GameNotice.OpenGameNotice();
        }
@@ -262,15 +256,12 @@
        public void AccessLogin(H0101_tagServerPrepared _serverInfo)
        {
            Debug.LogFormat("AccessLogin: Version:{0}", _serverInfo.Version);
            GameNetSystem.Instance.SendInfo(Get0101SendPackage(_serverInfo)); // 登录
        }
        public C0101_tagCPlayerLogin Get0101SendPackage(H0101_tagServerPrepared _serverInfo)
        {
            var send = new C0101_tagCPlayerLogin();
            Debug.LogFormat("C0101_tagCPlayerLogin");
            Debug.LogFormat("Get0101SendPackage: type:{0}", VersionConfig.Get().versionAuthority);
            switch (VersionConfig.Get().versionAuthority)
            {
                case VersionAuthority.InterTest:
@@ -291,14 +282,11 @@
                    send.Adult = 1;
                    send.ExtraLen = 0;
                    send.Extra = "";
                    Debug.Log("InterTest=====> extra: " + send.Extra);
                    break;
                case VersionAuthority.Release:
                    Debug.LogFormat("C0101_tagCPlayerLogin 1111111111111");
                    send.Extra = VersionConfig.Get().SpID + "|" + ynmbxxjUtil.Instance.Device.uniqueID;
                    send.ExtraLen = (ushort)send.Extra.Length;
                    Debug.LogFormat("C0101_tagCPlayerLogin 2222222222222");
                    if (ynmbxxjUtil.Instance.ChannelPlatform == ynmbxxjUtil.E_ChannelPlatform.Free)
                    {
                        send.IDType = 1;
@@ -316,11 +304,9 @@
                        ynmbxxjUtil.Instance.ChannelPlatform == ynmbxxjUtil.E_ChannelPlatform.en
                        )
                    {
                        Debug.LogFormat("C0101_tagCPlayerLogin 333333333333333");
                        send.IDType = (byte)ynmbxxjUtil.Instance.ChannelPlatform;
                        send.Extra += ("|" + sdkLoginResult.token + "|" + sdkLoginResult.qkUserName);
                        send.ExtraLen = (ushort)send.Extra.Length;
                        Debug.LogFormat("C0101_tagCPlayerLogin 444444444444444444");
                    }
                    string deviceInfo = "ios";
                    try
@@ -330,15 +316,14 @@
                    }
                    catch (Exception ex)
                    {
                        Debug.LogError("C0101_tagCPlayerLogin Exception: " + ex.Message);
                        Debug.Log("C0101_tagCPlayerLogin Exception: " + ex.Message);
                    }
                    send.AccID = sdkLoginResult.account;
                    var versionStr = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, "_", deviceInfo);
                    Debug.LogFormat("C0101_tagCPlayerLogin 5555555555555555");
                    send.Extra += ("|" + versionStr.Substring(0, Math.Min(24, versionStr.Length)));
                    Debug.Log("Release=====> extra: " + send.Extra);
                    Debug.Log("=====> extra: " + send.Extra);
                    send.ExtraLen = (ushort)send.Extra.Length;
                    send.MAC = DeviceUtility.GetMac();
                    send.Version = _serverInfo.Version;
@@ -366,7 +351,6 @@
                    }
                    break;
            }
            Debug.LogFormat("C0101_tagCPlayerLogin: IDType:{0}, AccID:{1}, Extra:{2}", send.IDType, send.AccID, send.Extra);
            return send;
        }