1234567891011121314151617181920212223242526272829303132333435 |
- #include "SPAServer.h"
- #include "spdlog/spdlog.h"
- #include "CurlHttp.h"
- #include <filesystem>
- SPAServer::SPAServer()
- {
- m_logger = spdlog::get("SPAServer");
- if(m_logger == nullptr)
- {
- SPDLOG_ERROR("APAServer logger is nullptr");
- return;
- }
- m_fromSuperBrain.getToken();
- // m_fromSuperBrain.getTaskTypeList();
- m_fromRedis.setRedisIPAndPort("172.16.36.80", 32222);
- m_fromRedis.setRedisPassword("Ff1z@TOFr^iwd%Ra");
- m_fromRedis.connectRedis();
- std::string value;
- m_fromRedis.getRedisString("113:P100104000", value);
- SPDLOG_LOGGER_INFO(m_logger, "{}", value);
- m_fromRedis.disConnectRedis();
- }
- SPAServer::~SPAServer()
- {
- }
|