fix some error and add some fun

This commit is contained in:
lnk
2025-10-11 09:08:43 +08:00
parent 35231baae7
commit c494225b38
5 changed files with 106 additions and 27 deletions

View File

@@ -424,8 +424,8 @@ void download_xml_for_icd(const std::string& MODEL_ID,
//读最新本地台账
std::string read_latest_ledger_file() {
const char* dir = std::string(FRONT_PATH + "/dat/ledger").c_str();
DIR* dp = opendir(dir);
std::string dir = FRONT_PATH + "/dat/ledger";
DIR* dp = opendir(dir.c_str());
if (!dp) return "";
struct dirent* entry;