From 692117405a5acde389d98a0b3b6700582dcfc484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=AB=E4=B9=90=E7=9A=84pro?= Date: Sat, 14 Oct 2023 02:49:21 +0000 Subject: [PATCH 1/3] update services/core/src/standby_service_impl.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 快乐的pro --- services/core/src/standby_service_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/core/src/standby_service_impl.cpp b/services/core/src/standby_service_impl.cpp index 3f9b0eb..7d76c7d 100644 --- a/services/core/src/standby_service_impl.cpp +++ b/services/core/src/standby_service_impl.cpp @@ -1255,7 +1255,8 @@ void StandbyServiceImpl::DumpChangeConfigParam(const std::vector& a void StandbyServiceImpl::DumpPushStrategyChange(const std::vector& argsInStr, std::string& result) { - if (argsInStr[DUMP_SECOND_PARAM] == "--whitelist") { + auto argc = argsInStr.size(); + if (argc >= DUMP_PUSH_WHITE_LIST_PARAM_NUMS && argsInStr[DUMP_SECOND_PARAM] == "--whitelist") { StandbyStateSubscriber::GetInstance()->NotifyAllowChangedByCommonEvent( std::atoi(argsInStr[DUMP_THIRD_PARAM].c_str()), argsInStr[DUMP_FOURTH_PARAM], std::atoi(argsInStr[DUMP_FIFTH_PARAM].c_str()), argsInStr[DUMP_SIXTH_PARAM] == "true"); -- Gitee From abcd8d5cfbdb651b97e1e49f4fac821cee70c4bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=AB=E4=B9=90=E7=9A=84pro?= Date: Sat, 14 Oct 2023 02:50:56 +0000 Subject: [PATCH 2/3] update utils/common/include/common_constant.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 快乐的pro --- utils/common/include/common_constant.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/common/include/common_constant.h b/utils/common/include/common_constant.h index b3cf3ca..4cca977 100644 --- a/utils/common/include/common_constant.h +++ b/utils/common/include/common_constant.h @@ -86,6 +86,8 @@ extern const uint32_t DUMP_SLEEP_ALLOW_LIST_NUMS; extern const uint32_t DUMP_SLEEP_APPLY_ALLOW_LIST_NUMS; extern const uint32_t DUMP_SWITCH_PARAM_NUMS; extern const uint32_t DUMP_STATE_TIMEOUT_PARAM_NUMS; +extern const uint32_t DUMP_PUSH_WHITE_LIST_PARAM_NUMS; +extern const uint32_t DUMP_PUSH_CTRL_NETWORK_PARAM_NUMS; extern const std::string DUMP_ON; extern const std::string DUMP_OFF; -- Gitee From 120496fc058bc2caa5d847fcfeda9c7d58858b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=AB=E4=B9=90=E7=9A=84pro?= Date: Sat, 14 Oct 2023 02:52:39 +0000 Subject: [PATCH 3/3] update utils/common/src/common_constant.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 快乐的pro --- utils/common/src/common_constant.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/common/src/common_constant.cpp b/utils/common/src/common_constant.cpp index bb9f8f9..bb8e8d7 100644 --- a/utils/common/src/common_constant.cpp +++ b/utils/common/src/common_constant.cpp @@ -83,6 +83,8 @@ const uint32_t DUMP_SLEEP_ALLOW_LIST_NUMS = 4; const uint32_t DUMP_SLEEP_APPLY_ALLOW_LIST_NUMS = 7; const uint32_t DUMP_SWITCH_PARAM_NUMS = 3; const uint32_t DUMP_STATE_TIMEOUT_PARAM_NUMS = 3; +const uint32_t DUMP_PUSH_WHITE_LIST_PARAM_NUMS = 6; +const uint32_t DUMP_PUSH_CTRL_NETWORK_PARAM_NUMS = 2; const std::string DUMP_ON = "on"; const std::string DUMP_OFF = "off"; -- Gitee