工程代码地址为:https://download.youkuaiyun.com/download/f110300641/10784562
简单的测试:
#include <iostream>
#include <thread>
#include <string>
#include <chrono>
#include "rapidjson/document.h"
#include <rapidjson/writer.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/prettywriter.h>
#include "tg_client_mgr.h"
std::string login_json()
{
rapidjson::Document doc;
rapidjson::Document::AllocatorType& Allocator = doc.GetAllocator();
rapidjson::Value root( rapidjson::kObjectType );
rapidjson::Value child( rapidjson::kObjectType );
root.AddMember( "cmd", "login", Allocator );
child.AddMember( "user_name", "COLLECTOR", Allocator );
child.AddMember( "use