Explorar el Código

#IQRV #comment [Restful][BugFix]

gifur hace 3 años
padre
commit
a52bc603be
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      Module/include/CommEntityRestful.hpp
  2. 1 0
      Other/libRestfulFunc/RestfulFunc.h

+ 1 - 1
Module/include/CommEntityRestful.hpp

@@ -37,7 +37,7 @@ static bool FulfillRequestJsonBody(HttpClientRequestConfig* pConfig, const T& da
 {
     std::string jsonValue;
     if (Object2Json(jsonValue, dataStruct)) {
-        pConfig.SetJsonBody(jsonValue);
+        pConfig->SetJsonBody(jsonValue);
         return true;
     }
     return false;

+ 1 - 0
Other/libRestfulFunc/RestfulFunc.h

@@ -24,6 +24,7 @@
 #include <string>
 #include <map>
 #include <vector>
+#include <sstream>
 
 /*
 * > 0 : 网站返回的错误码,比如 200,404 等