基本通信测试通过。

This commit is contained in:
2026-03-10 11:51:02 +08:00
commit b361eb3f88
15 changed files with 690 additions and 0 deletions

23
bf.util.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef BF_UTIL_H
#define BF_UTIL_H
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
#include <string>
extern std::shared_ptr<spdlog::logger> gLogger;
class BF_Util
{
public:
BF_Util() = default;
public:
static void initLogger();
static void setLogLevel(spdlog::level::level_enum level);
static std::string MD5(const std::string& data);
static std::string RandomStrNum();
static std::string urlEncode(const std::string& data);
};
#endif