提交 15a7b31e 编写于 作者: T tanghai

修复http组件的一个异步返回的bug

上级 4453905d
......@@ -234,7 +234,7 @@ namespace ETModel
// 自动把返回值,以json方式响应。
object resp = methodInfo.Invoke(httpHandler, args);
object result = resp;
if (resp is ETTask t)
if (resp is ETTask<HttpResult> t)
{
await t;
result = t.GetType().GetProperty("Result").GetValue(t, null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册