1、删除无用类
2、调整定时逻辑,将定时改为框架的事件总线 3、电梯业务逻辑代码调整
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace JNPF.Common.Extension;
|
||||
|
||||
@@ -701,6 +702,13 @@ public static partial class Extensions
|
||||
{
|
||||
return thisValue == null;
|
||||
}
|
||||
//added by ly on 20231030
|
||||
public static T ConvertToType<T>(this object value) where T : class
|
||||
{
|
||||
var jsonData = JsonConvert.SerializeObject(value);
|
||||
return JsonConvert.DeserializeObject<T>(jsonData);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user