Преглед изворни кода

#IQRV #comment [Restful][BugFix]

gifur пре 3 година
родитељ
комит
a52bc603be
2 измењених фајлова са 2 додато и 1 уклоњено
  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 等