NewLife/X

解决 args 变量没有赋值导致的参数传递失败的问题。by Soar360
大石头 authored at 2023-09-09 07:16:48
9681eed
Tree
1 Parent(s) 3fd8a66
Summary: 1 changed files with 1 additions and 0 deletions.
Modified +1 -0
Modified +1 -0
diff --git a/NewLife.Core/Remoting/ApiServer.cs b/NewLife.Core/Remoting/ApiServer.cs
index 21169cd..48ee793 100644
--- a/NewLife.Core/Remoting/ApiServer.cs
+++ b/NewLife.Core/Remoting/ApiServer.cs
@@ -213,6 +213,7 @@ public class ApiServer : ApiHost, IServer
             {
                 message = enc.Decode(msg);
                 if (message == null) return null;
+                args = message.Data;
 
                 // 根据动作名,开始跟踪
                 span = Tracer?.NewSpan("rps:" + message.Action, args);