1. 修复了节点导出C#代码时,入参作为string字符串的转义问题

2. 修复了 GetOtherNodeDataOfInvoke 类型入参来源生成代码出错,同时增加了异步判断
3. 修复了[Script]脚本节点无法正确获取程序集的问题
This commit is contained in:
fengjiayi
2025-08-04 21:00:11 +08:00
parent e389dbb967
commit e159b61bf0
4 changed files with 57 additions and 16 deletions

View File

@@ -197,8 +197,11 @@ namespace Serein.NodeFlow.Model.Nodes
string returnTypeName = nodeInfo.CustomData?.ReturnTypeName ?? typeof(object);
var flowLibService = Env.IOC.Get<FlowLibraryService>();
Type?[] argType = array.Select(item => string.IsNullOrWhiteSpace(item.ArgType) ? null : flowLibService.GetType(item.ArgType) ?? typeof(Unit)).ToArray();
Type?[] argType = array.Select(info => string.IsNullOrWhiteSpace(info.ArgType) ? typeof(Unit)
: Type.GetType(info.ArgType)
?? flowLibService.GetType(info.ArgType)
?? typeof(Unit)).ToArray();
Type? resType = Type.GetType(returnTypeName);
for (int i = 0; i < paramCount; i++)