mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-04 07:16:35 +08:00
修复了BUG:流程上下文无法入参
This commit is contained in:
@@ -12,7 +12,6 @@ namespace Serein.Library
|
||||
/// <summary>
|
||||
/// 不提供流程操作能力,仅提供容器功能
|
||||
/// </summary>
|
||||
|
||||
public class ContainerFlowEnvironment : IFlowEnvironment, ISereinIOC
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -419,6 +419,7 @@ namespace Serein.Library
|
||||
// 常规参数的获取
|
||||
for (int i = 0; i < args.Length; i++) {
|
||||
var pd = MethodDetails.ParameterDetailss[i];
|
||||
|
||||
args[i] = await pd.ToMethodArgData(context); // 获取数据
|
||||
}
|
||||
|
||||
|
||||
@@ -190,12 +190,12 @@ namespace Serein.Library
|
||||
var env = nodeModel.Env;
|
||||
#region 显然的流程基本类型
|
||||
// 返回运行环境
|
||||
if (DataType == typeof(IFlowEnvironment))
|
||||
if (typeof(IFlowEnvironment).IsAssignableFrom(DataType))
|
||||
{
|
||||
return env;
|
||||
}
|
||||
// 返回流程上下文
|
||||
if (DataType == typeof(IDynamicContext))
|
||||
if (typeof(IDynamicContext).IsAssignableFrom(DataType))
|
||||
{
|
||||
return context;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Serein.Workbench
|
||||
{
|
||||
|
||||
#if DEBUG
|
||||
if (1 == 1)
|
||||
if (1 == 2)
|
||||
{
|
||||
// 这里是测试代码,可以删除
|
||||
string filePath;
|
||||
|
||||
@@ -55,6 +55,11 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
|
||||
<PackageReference Include="Lagrange.Core" Version="0.3.1" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />
|
||||
<PackageReference Include="ZXing.Net" Version="0.16.10" />
|
||||
<PackageReference Include="ZXing.Net.Bindings.ImageSharp" Version="0.16.15" />
|
||||
|
||||
<!--<PackageReference Include="MySqlConnector" Version="2.4.0" />
|
||||
<PackageReference Include="SqlSugarCore" Version="5.1.4.170" />
|
||||
<PackageReference Include="SqlSugarCoreNoDrive" Version="5.1.4.171" />-->
|
||||
|
||||
Reference in New Issue
Block a user