Browse Source

#IQRV #comment [Restful][BugFix]

gifur 3 years ago
parent
commit
a52bc603be
2 changed files with 2 additions and 1 deletions
  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 等