diff --git a/VPet-Simulator.Windows/Function/Setting.cs b/VPet-Simulator.Windows/Function/Setting.cs index de23e79..654f7c5 100644 --- a/VPet-Simulator.Windows/Function/Setting.cs +++ b/VPet-Simulator.Windows/Function/Setting.cs @@ -186,7 +186,11 @@ namespace VPet_Simulator.Windows public int PressLength { get => presslength; - set => this["gameconfig"].SetInt("presslength", value); + set + { + presslength = value; + this["gameconfig"].SetInt("presslength", value); + } } /// /// 互动周期 @@ -194,7 +198,11 @@ namespace VPet_Simulator.Windows public int InteractionCycle { get => intercycle; - set => this["gameconfig"].SetInt("intercycle", value); + set + { + intercycle = value; + this["gameconfig"].SetInt("intercycle", value); + } } /// /// 计算间隔 diff --git a/VPet-Simulator.Windows/WinDesign/TalkBox.xaml.cs b/VPet-Simulator.Windows/WinDesign/TalkBox.xaml.cs index 4d186fc..8ff230c 100644 --- a/VPet-Simulator.Windows/WinDesign/TalkBox.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/TalkBox.xaml.cs @@ -81,7 +81,7 @@ namespace VPet_Simulator.Windows byte[] byteData = Encoding.UTF8.GetBytes(sb.ToString()); int length = byteData.Length; request.ContentLength = length; - request.Timeout = 500000; + request.Timeout = 200000; using (Stream writer = request.GetRequestStream()) { writer.Write(byteData, 0, length);