Skip to content

Commit 7c395c7

Browse files
committed
fix: 修复定时任务发送指令时编码未跟随设置的问题
1 parent 1c30374 commit 7c395c7

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

MSL/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@
4949
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
5050
//通过使用 "*",如下所示:
5151
// [assembly: AssemblyVersion("1.0.*")]
52-
[assembly: AssemblyVersion("3.7.0.7")]
53-
[assembly: AssemblyFileVersion("3.7.0.7")]
52+
[assembly: AssemblyVersion("3.7.0.8")]
53+
[assembly: AssemblyFileVersion("3.7.0.8")]

MSL/forms/ServerRunner.xaml.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4531,7 +4531,16 @@ private void TimedTasks(int id, int timer, string cmd)
45314531
}
45324532
else
45334533
{
4534-
ServerProcess.StandardInput.WriteLine(cmd);
4534+
if (inputCmdEncoding.Content.ToString() == "UTF8")
4535+
{
4536+
SendCmdUTF8(cmd);
4537+
4538+
}
4539+
else
4540+
{
4541+
SendCmdANSL(cmd);
4542+
}
4543+
// ServerProcess.StandardInput.WriteLine(cmd);
45354544
}
45364545
if (tasksList.SelectedIndex != -1 && int.Parse(tasksList.SelectedItem.ToString()) == id)
45374546
{

0 commit comments

Comments
 (0)