소스 검색

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))
                 {