12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #include "SPAServer.h"
- #include "spdlog/spdlog.h"
- #include "CurlHttp.h"
- #include <filesystem>
- #include "CurlFtp.h"
- #include <QVector>
- 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();
- //|FTP|192.1.2.178:32021|lh|DWw7V9u0|
- m_toEQMDataBase.initWebApi("http://192.1.3.133:31000/v6/", "", "4c2f9fc91c22dd98331e47af2e2964f4");
- AlgorithmInfo info;
- info.ActionID = "123";
- info.ActionName = "test";
- info.ActionTaskID = 456;
- QVector<AlgorithmInfo> vecInfo;
- vecInfo.push_back(info);
- m_toEQMDataBase.writeAlgorithmInfo(vecInfo);
-
- }
- SPAServer::~SPAServer()
- {
- }
|