MY 6 miesięcy temu
rodzic
commit
661d144245
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      JLHHJSvr/LJLib.HttpServer/SimpleHttpServer.cs

+ 3 - 1
JLHHJSvr/LJLib.HttpServer/SimpleHttpServer.cs

@@ -272,7 +272,9 @@ namespace LJLib.HttpServer
                 string apiName = method;
                 Type requestType = server.GetRequestType(apiName);
                 string body = requestbody;
-                requestlist = parser.JsonParse(requestType, body) as ILJRequest;
+
+                requestlist = JsonConvert.DeserializeObject(body, requestType) as ILJRequest;
+                //requestlist = parser.JsonParse(requestType, body) as ILJRequest;
                 responselist = server.DoExcute(requestlist, null);
                 if (!string.IsNullOrEmpty(responselist.ErrMsg))
                 {