|
@@ -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)
|
|
|
{
|