浏览代码

1、补充

MY 6 月之前
父节点
当前提交
661d144245
共有 1 个文件被更改,包括 3 次插入1 次删除
  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))
                 {