From 5e06a085d6047aa2fa8278521b545c135e1e2d7f Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sat, 11 Mar 2023 01:37:45 +1100 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=9C=AA=E7=94=9F=E6=95=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/Function/Setting.cs | 12 ++++++++++-- VPet-Simulator.Windows/WinDesign/TalkBox.xaml.cs | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) 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);