From 2049f16ce29dfe8b676daf5dd20d280ac5d46d00 Mon Sep 17 00:00:00 2001 From: zhangsheng Date: Wed, 18 Mar 2026 15:59:23 +0800 Subject: [PATCH] modify wave triger bugs --- common/common_func.hpp | 6 +++--- jsonparse/web_cmd_parse3.cpp | 2 +- localserver/web_cmd.cpp | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/common/common_func.hpp b/common/common_func.hpp index 1bcfc4b..0c7a26f 100644 --- a/common/common_func.hpp +++ b/common/common_func.hpp @@ -9,9 +9,9 @@ typedef struct statfs DISK, *pDISK; -#define SECTION_MAX_LEN 256 -#define STRVALUE_MAX_LEN 256 -#define LINE_CONTENT_MAX_LEN 256 +#define SECTION_MAX_LEN 1024 +#define STRVALUE_MAX_LEN 1024 +#define LINE_CONTENT_MAX_LEN 1024 //配置文件位置 #define NETWORK "/etc/network/interfaces" #define SYSTEMINFOFILE "/opt/configenv/SystemInfo.json" //系统信息 diff --git a/jsonparse/web_cmd_parse3.cpp b/jsonparse/web_cmd_parse3.cpp index 96a083e..e736fa2 100644 --- a/jsonparse/web_cmd_parse3.cpp +++ b/jsonparse/web_cmd_parse3.cpp @@ -1573,7 +1573,7 @@ std::string JsonData::JsonCmd_Cgi_69(Param_69 ¶m){ char whereCon[512] = {0}; char updateSql[256] = {0}; if (param.mMode == 1) { - trigerThresholdEnable = writeIntValue("config", "trigerThresholdEnable", param.trigerThresholdEnable, (char *)GlobalConfig::Config_G.c_str()); + trigerThresholdEnable = writeIntValue("config", "trigerThresholdEnable", param.trigerThresholdEnable ? 1:0, (char *)GlobalConfig::Config_G.c_str()); if(param.vecParam69.size() > 0){ for (size_t i = 0; i < param.vecParam69.size(); i++) { diff --git a/localserver/web_cmd.cpp b/localserver/web_cmd.cpp index 3aa2050..e366f3a 100644 --- a/localserver/web_cmd.cpp +++ b/localserver/web_cmd.cpp @@ -634,6 +634,7 @@ std::string LocalServer::HandleCgi_cmd(std::string &pData) { param.mMode = 0; } Json::Value recvDataNodeNo = recvBody["DataNodeNo"]; + param.trigerThresholdEnable = recvBody["threshold"].asBool(); if (recvDataNodeNo.size() > 0) { for (size_t i = 0; i < recvDataNodeNo.size(); i++) {