hch
2 天以前 d63b093966500ac79bb9e5b4a2f205f0a3759b9e
0312 同步硬核新包的登录
2个文件已修改
17 ■■■■■ 已修改文件
Main/System/Login/LoginManager.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Login/LoginWin.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Login/LoginManager.cs
@@ -426,7 +426,8 @@
                    send.Version = _serverInfo.Version;
                    send.LineNO = 255;
                    send.AppID = VersionConfig.Get().appId;
                    send.AccountID = (uint)sdkLoginResult.accountID;
                    //AccountID没有实际用途,历史遗留 现在改发渠道ID
                    uint.TryParse(sdkLoginResult.channelId, out send.AccountID);
                    send.TokenExpire = sdkLoginResult.tokenExpire;
                    send.Phone = (byte)sdkLoginResult.phone;
                    send.ServerID = (uint)ServerListCenter.Instance.currentServer.region_flag;
Main/System/Login/LoginWin.cs
@@ -193,7 +193,21 @@
    private void OnServerChange()
    {
        ChangeServerInfo(ServerListCenter.Instance.currentServer);
        if (VersionConfig.Get().appId == "ryzj")
        {
            //更改成记录的旧账号
            if (!string.IsNullOrEmpty(ServerListCenter.Instance.currentServer.account) && LoginManager.Instance.sdkLoginResult != null &&
                LoginManager.Instance.sdkLoginResult.account != ServerListCenter.Instance.currentServer.account)
            {
                LoginManager.Instance.sdkLoginResult.account = ServerListCenter.Instance.currentServer.account;
                Debug.LogError("更改账号为" + ServerListCenter.Instance.currentServer.account);
            }
        }
        SDKUtils.Instance.SendTraceEvent(1);
    }
    // private void OnLoginBtnClick()