appro:优化update判断。

This commit is contained in:
taynpg 2025-01-16 09:19:39 +08:00
parent 4dd8bdc8f1
commit edb3e15426
2 changed files with 10 additions and 1 deletions

View File

@ -21,7 +21,7 @@
],
"visualizerFile": "${workspaceRoot}/.vscode/qt5.natvis",
"args": [
"-n", "2"
"-n", "1"
]
},
"cmake.environment": {

View File

@ -376,8 +376,17 @@ bool CClient::request_update_list(const std::string& param)
std::string handled_content;
for (const auto& item : vec) {
std::string hitem = COfStr::trim(item);
if (hitem.empty()) {
continue;
}
logger_->info("---> check {}", hitem);
auto v = COfStr::split(hitem, "|");
if (v.size() >= 2) {
if (!fs::exists(v[0])) {
logger_->error("file {} not exist.", v[0]);
valid = false;
break;
}
handled_content.append(hitem + "\n");
continue;
}