Skip to content

Commit

Permalink
更新版本为 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperStudio committed May 3, 2023
1 parent f99a02d commit b58e3fc
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
Binary file modified SuperCom.Test/测试用例/SuperCom-3.5.xlsx
Binary file not shown.
Binary file added SuperCom.Test/测试用例/SuperCom-3.6.xlsx
Binary file not shown.
2 changes: 2 additions & 0 deletions SuperCom/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
using SuperUtils.Framework.Logger;
using SuperUtils.IO;
using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Threading;

namespace SuperCom
{
Expand Down
4 changes: 2 additions & 2 deletions SuperCom/Config/ConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace SuperCom.Config
{
public static class ConfigManager
{
public const string SQLITE_DATA_PATH = "user_data.sqlite";
public const string RELEASE_DATE = "2023-05-03";

public const string RELEASE_DATE = "2023-04-23";
public const string SQLITE_DATA_PATH = "user_data.sqlite";
public const string LICENSE = "GPL-3.0";
public const string AUTHOR = "chao";
public const string APP_NAME = "SuperCom";
Expand Down
6 changes: 3 additions & 3 deletions SuperCom/Entity/SerialPortEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public PortSetting Setting

public SerialPortEx()
{

Init();
}

public SerialPortEx(string portName, int baudRate, Parity parity, int dataBits, StopBits stopBits)
Expand Down Expand Up @@ -249,8 +249,8 @@ public static string GetRemark(string json)
Dictionary<string, object> dict = JsonUtils.TryDeserializeObject<Dictionary<string, object>>(json);
if (dict != null)
{
if (dict.ContainsKey("Remark"))
return dict["Remark"].ToString();
if (dict.ContainsKey("Remark") && dict.Get("Remark", "") is object remark)
return remark.ToString();
}
return "";
}
Expand Down
4 changes: 4 additions & 0 deletions SuperCom/Logger/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ private Logger()
static Logger()
{
Instance = new Logger();
#if DEBUG
Instance.LogLevel = Level.Debug;
#else
Instance.LogLevel = Level.Info;
#endif
}

public override void LogPrint(string str)
Expand Down
3 changes: 2 additions & 1 deletion SuperCom/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ public void ReadConfig()
// 设置配置
foreach (var item in vieModel.SideComPorts)
{
ComSettings comSettings = vieModel.ComSettingList.Where(arg => arg.PortName.Equals(item.Name)).FirstOrDefault();
ComSettings comSettings = vieModel.ComSettingList.Where(arg => arg.PortName.Equals(item.Name))
.FirstOrDefault();
if (comSettings != null && !string.IsNullOrEmpty(comSettings.PortSetting))
{
item.Remark = SerialPortEx.GetRemark(comSettings.PortSetting);
Expand Down
6 changes: 3 additions & 3 deletions SuperCom/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("SuperSutdio")]
[assembly: AssemblyProduct("SuperCom")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyCopyright("© 2022 SuperSutdio")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.5.0.0")]
[assembly: AssemblyFileVersion("3.5.0.0")]
[assembly: AssemblyVersion("3.6.0.0")]
[assembly: AssemblyFileVersion("3.6.0.0")]

0 comments on commit b58e3fc

Please sign in to comment.