mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-20 00:06:45 +08:00
fix(helper) : 修复 EmitHelper 未正确处理值类型返回值的Task方法
This commit is contained in:
@@ -206,7 +206,7 @@ namespace Serein.Library.Utils
|
||||
il.Emit(isStatic ? OpCodes.Call : OpCodes.Callvirt, methodInfo);
|
||||
|
||||
// 如果是泛型Task
|
||||
if (isTaskGeneric && taskResultType is not null)
|
||||
if (isTaskGeneric && methodInfo.ReturnType.IsValueType && taskResultType is not null)
|
||||
{
|
||||
var convertMethod = typeof(EmitHelper)
|
||||
.GetMethod(nameof(ConvertTaskResult),
|
||||
|
||||
Reference in New Issue
Block a user