xx 2 лет назад
Родитель
Сommit
a50f520819
3 измененных файлов с 3 добавлено и 11 удалено
  1. 2 2
      src/module/http/request.cpp
  2. 1 1
      src/module/http/request.h
  3. 0 8
      src/module/mssql.h

+ 2 - 2
src/module/http/request.cpp

@@ -101,9 +101,9 @@ VarType module::request::param(const std::string& name, bool throw_,sol::this_st
     return sol::make_object(s,value);
 }
 
-std::string module::request::remote_ipaddress(bool find_header, const std::string& inside_ipaddress)
+std::string module::request::remote_ipaddress()
 {
-    return m_request->remote_ipaddress(find_header, inside_ipaddress);
+    return m_request->remote_ipaddress(false);
 }
 ushort module::request::remote_port()
 {

+ 1 - 1
src/module/http/request.h

@@ -18,7 +18,7 @@ namespace module
         std::string filepath();
         std::string host();
         VarType param(const std::string& name,bool throw_,sol::this_state s);
-        std::string remote_ipaddress(bool find_header = false, const std::string& inside_ipaddress = "");
+        std::string remote_ipaddress();
         ushort remote_port();
 
         std::string token();

+ 0 - 8
src/module/mssql.h

@@ -23,14 +23,6 @@ namespace module
 		int64 get_i64(const std::string& name);
 		double get_dob(const std::string& name);
 		void query(const std::string& sql);
-		/*/// <summary>
-		/// 绑定
-		/// </summary>
-		/// <param name="value"></param>
-		void bind_str(const std::string& value);
-		void bind_i32(int32 value);
-		void bind_i64(int64 value);
-		void bind_dob(double value);*/
 		/// <summary>
 		/// 下一行
 		/// </summary>