SPAServer.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #include "SPAServer.h"
  2. #include "spdlog/spdlog.h"
  3. #include "CurlHttp.h"
  4. #include <filesystem>
  5. #include "CurlFtp.h"
  6. #include <QVector>
  7. SPAServer::SPAServer()
  8. {
  9. m_logger = spdlog::get("SPAServer");
  10. if(m_logger == nullptr)
  11. {
  12. SPDLOG_ERROR("APAServer logger is nullptr");
  13. return;
  14. }
  15. // m_fromSuperBrain.getToken();
  16. // // m_fromSuperBrain.getTaskTypeList();
  17. // m_fromRedis.setRedisIPAndPort("172.16.36.80", 32222);
  18. // m_fromRedis.setRedisPassword("Ff1z@TOFr^iwd%Ra");
  19. // m_fromRedis.connectRedis();
  20. // std::string value;
  21. // m_fromRedis.getRedisString("113:P100104000", value);
  22. // SPDLOG_LOGGER_INFO(m_logger, "{}", value);
  23. // m_fromRedis.disConnectRedis();
  24. //|FTP|192.1.2.178:32021|lh|DWw7V9u0|
  25. m_toEQMDataBase.initWebApi("http://192.1.3.133:31000/v6/", "", "4c2f9fc91c22dd98331e47af2e2964f4");
  26. AlgorithmInfo info;
  27. info.ActionID = "123";
  28. info.ActionName = "test";
  29. info.ActionTaskID = 456;
  30. QVector<AlgorithmInfo> vecInfo;
  31. vecInfo.push_back(info);
  32. m_toEQMDataBase.writeAlgorithmInfo(vecInfo);
  33. }
  34. SPAServer::~SPAServer()
  35. {
  36. }