Browse Source

修改COMMON_TOOL_H

daiyueteng 6 years ago
parent
commit
bffff46321
1 changed files with 13 additions and 11 deletions
  1. 13 11
      common_tool.h

+ 13 - 11
common_tool.h

@@ -7,23 +7,25 @@
  * @date 2018-09-15
  */
 
-#include "common.h"
-#include "log.h"
+
 #include <chrono>
 #include <string>
 #include <sys/time.h>
-#include "db_api/CDBSingletonDefine.h"
-#include "websocket/wsClientMgr.h"
-#include "card.h"
-#include "mine.h"
+#include <rapidjson/document.h>
+#include <rapidjson/writer.h>
+#include <rapidjson/stringbuffer.h>
+#include <rapidjson/prettywriter.h>
+
+#include <boost/function.hpp>
+#include <boost/bind.hpp>
+
+#include "websocket/sio/sio_client.h"
+#include "common.h"
+
+
 class tool_other
 {
 public:
-    static void send_json(const std::string& cmd, const std::string& data)
-    {
-        //log_info("发送json: cmd=%s, data=%s\n", cmd.c_str(), data.c_str());
-        swsClientMgr.send(cmd, data);
-    }
 
     static std::string to13str(std::string& str)
     {