From 8ec0927037ac010fc3138f87cb2699895721119f Mon Sep 17 00:00:00 2001 From: sin365 <353374337@qq.com> Date: Tue, 7 Jan 2025 00:27:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=B1=A0=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AxibugEmuOnline.Server.csproj | 2 +- .../AxibugEmuOnline.Server.csproj.user | 2 +- .../Common/Haoyue_SQLPoolManager.cs | 31 ++- .../Manager/LoginManager.cs | 1 + ProtobufCore/build_cs.bat | 1 + .../out/CS/ProtobufAxibugEmuOnline.cs | 227 +++++++++++------- .../proto/protobuf_AxibugEmuOnline.proto | 11 + 7 files changed, 183 insertions(+), 92 deletions(-) diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server.csproj b/AxibugEmuOnline.Server/AxibugEmuOnline.Server.csproj index 57a78f95..1eb4b5c5 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server.csproj +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net9.0 enable enable diff --git a/AxibugEmuOnline.Server/AxibugEmuOnline.Server.csproj.user b/AxibugEmuOnline.Server/AxibugEmuOnline.Server.csproj.user index 8108db7f..d91b44c5 100644 --- a/AxibugEmuOnline.Server/AxibugEmuOnline.Server.csproj.user +++ b/AxibugEmuOnline.Server/AxibugEmuOnline.Server.csproj.user @@ -1,6 +1,6 @@  - <_LastSelectedProfileId>G:\Sin365\AxibugEmuOnline\AxibugEmuOnline.Server\Properties\PublishProfiles\FolderProfile.pubxml + <_LastSelectedProfileId>G:\Sin365\AxibugEmuOnline\AxibugEmuOnline.Server\Properties\PublishProfiles\FolderProfile1.pubxml \ No newline at end of file diff --git a/AxibugEmuOnline.Server/Common/Haoyue_SQLPoolManager.cs b/AxibugEmuOnline.Server/Common/Haoyue_SQLPoolManager.cs index 7138f479..1274dc0e 100644 --- a/AxibugEmuOnline.Server/Common/Haoyue_SQLPoolManager.cs +++ b/AxibugEmuOnline.Server/Common/Haoyue_SQLPoolManager.cs @@ -54,7 +54,7 @@ namespace AxibugEmuOnline.Server.Common { _DicSqlRunFunNum[FuncStr] = 1L; } - MySqlConnection _conn; + MySqlConnection _conn = null; if (SQLPool.Count < 1) { Console.WriteLine("[DequeueSQLConn]创建新的SQLPool.Count>" + SQLPool.Count); @@ -63,14 +63,38 @@ namespace AxibugEmuOnline.Server.Common } else { - Console.WriteLine("[DequeueSQLConn]取出一个SQLCount.Count>" + SQLPool.Count); - _conn = SQLPool.Dequeue(); + MySqlConnection temp = null; + while (SQLPool.Count > 0) + { + Console.WriteLine("[DequeueSQLConn]取出一个SQLCount.Count>" + SQLPool.Count); + temp = SQLPool.Dequeue(); + if (temp.State == System.Data.ConnectionState.Closed) + { + Console.WriteLine("[DequeueSQLConn]已经断开SQLCount.Count>" + SQLPool.Count); + temp.Dispose(); + temp = null; + continue; + } + } + + if (temp != null) + { + _conn = temp; + } + else + { + Console.WriteLine("[DequeueSQLConn]连接池全部已断开,重新创建连接"); + _conn = conn(); + _conn.Open(); + } } + _OutOfSQLPool.Add(_conn, new Haoyue_PoolTime { time = time(), FuncStr = FuncStr }); + return _conn; } } @@ -90,6 +114,7 @@ namespace AxibugEmuOnline.Server.Common { Console.WriteLine("已经不需要回收了,多余了,SQLPool.Count>" + SQLPool.Count); BackConn.Close(); + BackConn.Dispose(); BackConn = null; } else diff --git a/AxibugEmuOnline.Server/Manager/LoginManager.cs b/AxibugEmuOnline.Server/Manager/LoginManager.cs index 1cb7aa21..7e9568ce 100644 --- a/AxibugEmuOnline.Server/Manager/LoginManager.cs +++ b/AxibugEmuOnline.Server/Manager/LoginManager.cs @@ -188,6 +188,7 @@ namespace AxibugEmuOnline.Server.Manager } catch (Exception e) { + AppSrv.g_Log.Error($"ex=>{e.ToString()}"); bDone = false; } Haoyue_SQLPoolManager.EnqueueSQLConn(conn); diff --git a/ProtobufCore/build_cs.bat b/ProtobufCore/build_cs.bat index fc73069d..ae3dc474 100644 --- a/ProtobufCore/build_cs.bat +++ b/ProtobufCore/build_cs.bat @@ -13,4 +13,5 @@ echo "==>>build finish" echo "==>>copy cs" copy %cd%\out\CS\ ..\AxibugEmuOnline.Server\Protobuf +copy %cd%\out\CS\ ..\AxibugEmuOnline.Client\Assets\Script\AppMain\Protobuf pause \ No newline at end of file diff --git a/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs b/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs index b64bcb2f..2450e1ba 100644 --- a/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs +++ b/ProtobufCore/out/CS/ProtobufAxibugEmuOnline.cs @@ -42,92 +42,96 @@ namespace AxibugProtobuf { "X1VzZXJKb2luX1JFU1ASLgoIVXNlckluZm8YASABKAsyHC5BeGlidWdQcm90", "b2J1Zi5Vc2VyTWluaUluZm8iJgoXUHJvdG9idWZfVXNlckxlYXZlX1JFU1AS", "CwoDVUlEGAEgASgDIjUKF1Byb3RvYnVmX1VzZXJTdGF0ZV9SRVNQEgsKA1VJ", - "RBgBIAEoAxINCgVTdGF0ZRgCIAEoBSItCgxVc2VyTWluaUluZm8SCwoDVUlE", - "GAEgASgDEhAKCE5pY2tOYW1lGAIgASgJIiwKGFByb3RvYnVmX01vZGlmeV9O", - "aWNrTmFtZRIQCghOaWNrTmFtZRgBIAEoCSIfCh1Qcm90b2J1Zl9Nb2RpZnlf", - "Tmlja05hbWVfUkVTUCJPCh1Qcm90b2J1Zl9VcGRhdGVfVXNlckluZm9fUkVT", - "UBIuCghVc2VySW5mbxgBIAEoCzIcLkF4aWJ1Z1Byb3RvYnVmLlVzZXJNaW5p", - "SW5mbyJhCiJQcm90b2J1Zl9VcGRhdGVfT3RoZXJVc2VySW5mb19SRVNQEgsK", - "A1VJRBgBIAEoAxIuCghVc2VySW5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W5SZXN1bHRTdGF0dXNfQmFzZURlZmF1bHQQ", + "ABIGCgJPSxABEg4KCkFjY291bnRFcnIQAkICSAFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AxibugProtobuf.CommandID), typeof(global::AxibugProtobuf.ErrorCode), typeof(global::AxibugProtobuf.LoginType), typeof(global::AxibugProtobuf.DeviceType), typeof(global::AxibugProtobuf.PlatformType), typeof(global::AxibugProtobuf.RoomGameState), typeof(global::AxibugProtobuf.LoginResultStatus), }, null, new pbr::GeneratedClrTypeInfo[] { @@ -142,7 +146,7 @@ namespace AxibugProtobuf { new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_UserJoin_RESP), global::AxibugProtobuf.Protobuf_UserJoin_RESP.Parser, new[]{ "UserInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_UserLeave_RESP), global::AxibugProtobuf.Protobuf_UserLeave_RESP.Parser, new[]{ "UID" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_UserState_RESP), global::AxibugProtobuf.Protobuf_UserState_RESP.Parser, new[]{ "UID", "State" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.UserMiniInfo), global::AxibugProtobuf.UserMiniInfo.Parser, new[]{ "UID", "NickName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.UserMiniInfo), global::AxibugProtobuf.UserMiniInfo.Parser, new[]{ "UID", "NickName", "DeviceType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Modify_NickName), global::AxibugProtobuf.Protobuf_Modify_NickName.Parser, new[]{ "NickName" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Modify_NickName_RESP), global::AxibugProtobuf.Protobuf_Modify_NickName_RESP.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AxibugProtobuf.Protobuf_Update_UserInfo_RESP), global::AxibugProtobuf.Protobuf_Update_UserInfo_RESP.Parser, new[]{ "UserInfo" }, null, null, null, null), @@ -363,11 +367,21 @@ namespace AxibugProtobuf { [pbr::OriginalName("Android")] Android = 2, [pbr::OriginalName("IOS")] Ios = 3, [pbr::OriginalName("PSV")] Psv = 4, + [pbr::OriginalName("PS3")] Ps3 = 5, + [pbr::OriginalName("PS4")] Ps4 = 6, + [pbr::OriginalName("XBOX360")] Xbox360 = 7, + [pbr::OriginalName("XBOXONE")] Xboxone = 8, + [pbr::OriginalName("WiiU")] WiiU = 9, + [pbr::OriginalName("Nintendo3DS")] Nintendo3Ds = 10, } public enum PlatformType { [pbr::OriginalName("All")] All = 0, [pbr::OriginalName("Nes")] Nes = 1, + [pbr::OriginalName("Master_System")] MasterSystem = 2, + [pbr::OriginalName("Game_Gear")] GameGear = 3, + [pbr::OriginalName("Game_Boy")] GameBoy = 4, + [pbr::OriginalName("Game_Boy_Color")] GameBoyColor = 5, } public enum RoomGameState { @@ -2855,6 +2869,7 @@ namespace AxibugProtobuf { public UserMiniInfo(UserMiniInfo other) : this() { uID_ = other.uID_; nickName_ = other.nickName_; + deviceType_ = other.deviceType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2891,6 +2906,20 @@ namespace AxibugProtobuf { } } + /// Field number for the "deviceType" field. + public const int DeviceTypeFieldNumber = 3; + private global::AxibugProtobuf.DeviceType deviceType_ = global::AxibugProtobuf.DeviceType.Default; + /// + ///设备类型 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::AxibugProtobuf.DeviceType DeviceType { + get { return deviceType_; } + set { + deviceType_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as UserMiniInfo); @@ -2906,6 +2935,7 @@ namespace AxibugProtobuf { } if (UID != other.UID) return false; if (NickName != other.NickName) return false; + if (DeviceType != other.DeviceType) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2914,6 +2944,7 @@ namespace AxibugProtobuf { int hash = 1; if (UID != 0L) hash ^= UID.GetHashCode(); if (NickName.Length != 0) hash ^= NickName.GetHashCode(); + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) hash ^= DeviceType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2938,6 +2969,10 @@ namespace AxibugProtobuf { output.WriteRawTag(18); output.WriteString(NickName); } + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) { + output.WriteRawTag(24); + output.WriteEnum((int) DeviceType); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2955,6 +2990,10 @@ namespace AxibugProtobuf { output.WriteRawTag(18); output.WriteString(NickName); } + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) { + output.WriteRawTag(24); + output.WriteEnum((int) DeviceType); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2970,6 +3009,9 @@ namespace AxibugProtobuf { if (NickName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(NickName); } + if (DeviceType != global::AxibugProtobuf.DeviceType.Default) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceType); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2987,6 +3029,9 @@ namespace AxibugProtobuf { if (other.NickName.Length != 0) { NickName = other.NickName; } + if (other.DeviceType != global::AxibugProtobuf.DeviceType.Default) { + DeviceType = other.DeviceType; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3009,6 +3054,10 @@ namespace AxibugProtobuf { NickName = input.ReadString(); break; } + case 24: { + DeviceType = (global::AxibugProtobuf.DeviceType) input.ReadEnum(); + break; + } } } #endif @@ -3031,6 +3080,10 @@ namespace AxibugProtobuf { NickName = input.ReadString(); break; } + case 24: { + DeviceType = (global::AxibugProtobuf.DeviceType) input.ReadEnum(); + break; + } } } } diff --git a/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto b/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto index f8330267..9d66bb9f 100644 --- a/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto +++ b/ProtobufCore/proto/protobuf_AxibugEmuOnline.proto @@ -97,12 +97,22 @@ enum DeviceType Android = 2; IOS = 3; PSV = 4; + PS3 = 5; + PS4 = 6; + XBOX360 = 7; + XBOXONE = 8; + WiiU = 9; + Nintendo3DS = 10; } enum PlatformType { All = 0; Nes = 1; + Master_System = 2; + Game_Gear = 3; + Game_Boy = 4; + Game_Boy_Color = 5; } //enum RoomPlayerState @@ -213,6 +223,7 @@ message UserMiniInfo { int64 UID = 1;//用户ID string NickName = 2;//昵称 + DeviceType deviceType = 3;//设备类型 } //修改昵称上行