mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-02 06:26:35 +08:00
修复了条件表达式".xxx<bool> = true/false"执行了错误分支,优化了流程的运行。
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -483,6 +484,10 @@ namespace Serein.Library.Utils.SereinExpression
|
||||
tempType = typeof(string);
|
||||
break;
|
||||
case "datetime":
|
||||
if(valueStr.Equals("now", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return DateTime.Now;
|
||||
}
|
||||
tempType = typeof(DateTime);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user