From ac772bd987294f28ac8bd3e266e029e3829708b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=9F=B3=E5=A4=B4?= Date: Fri, 26 Jul 2024 10:26:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=9A=84=E7=AD=BE=E5=90=8D?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NewLife.Remoting/Clients/ICommandClient.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NewLife.Remoting/Clients/ICommandClient.cs b/NewLife.Remoting/Clients/ICommandClient.cs index 8a73263..c53d597 100644 --- a/NewLife.Remoting/Clients/ICommandClient.cs +++ b/NewLife.Remoting/Clients/ICommandClient.cs @@ -163,6 +163,7 @@ public static async Task ExecuteCommand(this ICommandClient c if (d is Func func32) return func32(model.Argument); //if (d is Func func33) return func33(model.Argument); - return null; + //return null; + throw new ApiException(ApiCode.InternalServerError, $"服务[{model.Command}]的签名[{d}]不正确"); } } \ No newline at end of file