Эх сурвалжийг харах

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

tanghai 7 жил өмнө
parent
commit
15a7b31e2e

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