修复源码信息泄漏以及token无限期问题

This commit is contained in:
qing committed 2026-07-25 10:05:24 +08:00
1 parent 13be4bd8ca
commit efae81b230
3 files changed
+46 -13

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
#pragma once
#include <chrono>
#include <string>
#include <format>
@@ -13,7 +14,7 @@ public:
auto now = system_clock::now();
auto zone = current_zone();
zoned_time zt{zone, now};
return std::vformat(format, std::make_format_args(zt));
return std::vformat("{:" + format + "}", std::make_format_args(zt));
}
// 解析时间字符串为 system_clock::time_point(本地时间 → UTC)