소스 검색

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

tanghai 7 년 전
부모
커밋
15a7b31e2e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Server/Model/Module/Http/HttpComponent.cs

+ 1 - 1
Server/Model/Module/Http/HttpComponent.cs

@@ -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);