修复实时数据追踪

This commit is contained in:
lnk
2026-07-13 15:46:11 +08:00
parent 9181e2d4e9
commit 70c1534d96

View File

@@ -1570,11 +1570,15 @@ std::string pqBuildTracePayload(const PqToolConfig& cfg,
const std::string& frontType) { const std::string& frontType) {
std::string guid = makeGuid(); std::string guid = makeGuid();
int processNo = 0; int processNo = 0;
if (frontType == "cfg_3s_data") {
processNo = 0;
} else {
try { try {
processNo = device.processNo.empty() ? 0 : std::stoi(device.processNo); processNo = device.processNo.empty() ? 0 : std::stoi(device.processNo);
} catch (...) { } catch (...) {
processNo = 0; processNo = 0;
} }
}
json body = { json body = {
{"code", "set_log"}, {"code", "set_log"},