mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-30 21:16:35 +08:00
重新设计了@get 表达式,修改了 Workbench后台长时间运行时,重新切换到前台会产生参数连接线错误显示的问题
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -12,6 +13,8 @@ namespace Serein.Library.Utils
|
||||
/// </summary>
|
||||
public static class ConvertHelper
|
||||
{
|
||||
|
||||
|
||||
public static TResult ToConvert<TResult>(this object data)
|
||||
{
|
||||
var type = typeof(TResult);
|
||||
@@ -203,6 +206,14 @@ namespace Serein.Library.Utils
|
||||
#endif
|
||||
else if(type == typeof(DateTime))
|
||||
{
|
||||
if (valueStr.Equals("now"))
|
||||
{
|
||||
return DateTime.Now;
|
||||
}
|
||||
else if (valueStr.Equals("utcnow"))
|
||||
{
|
||||
return DateTime.UtcNow;
|
||||
}
|
||||
return DateTime.Parse(valueStr);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user