Skip to content

Commit

Permalink
添加 CommonHelper 类的 SystemSettings 静态属性
Browse files Browse the repository at this point in the history
在 CommonHelper.cs 文件中,移除了 using System.ComponentModel; 语句,并添加了 using System.Collections.Concurrent; 和 using System.ComponentModel; 语句。
在 CommonHelper 类中,添加了一个新的静态属性 SystemSettings,类型为 ConcurrentDictionary<String, String>,并进行了初始化。
  • Loading branch information
猿人易 committed Dec 7, 2024
1 parent 1a2961c commit 1174e5c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Pek.AspNetCore/CommonHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.ComponentModel;
using System.Collections.Concurrent;
using System.ComponentModel;
using System.Globalization;
using System.Net;
using System.Reflection;
Expand Down Expand Up @@ -364,4 +365,10 @@ public static int GetDifferenceInYears(DateTime startDate, DateTime endDate)
}

#endregion

/// <summary>
/// 系统设定
/// </summary>
public static ConcurrentDictionary<String, String> SystemSettings { get; set; } = new();

}

0 comments on commit 1174e5c

Please sign in to comment.