From d3e292b56a41210be27a1548ed21cd79a1ede996 Mon Sep 17 00:00:00 2001 From: fangyunzhong Date: Fri, 17 Feb 2023 05:42:27 +0000 Subject: [PATCH] =?UTF-8?q?fixed=20514c683=20from=20https://gitee.com/fang?= =?UTF-8?q?-yunzhong/developtools=5Fglobal=5Fresource=5Ftool/pulls/82=20fi?= =?UTF-8?q?xed=20964bb26=20from=20https://gitee.com/fang-yunzhong/developt?= =?UTF-8?q?ools=5Fglobal=5Fresource=5Ftool/pulls/81=20=E6=94=AF=E6=8C=81mo?= =?UTF-8?q?duleNames=E4=BC=A0=E5=85=A5string=E5=8F=82=E6=95=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangyunzhong --- src/cmd_list.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmd_list.cpp b/src/cmd_list.cpp index d7279a5..f2975e6 100644 --- a/src/cmd_list.cpp +++ b/src/cmd_list.cpp @@ -87,6 +87,9 @@ uint32_t CmdList::GetArray(const Json::Value &node, int c, HandleBack callback) uint32_t CmdList::GetModuleNames(const Json::Value &node, HandleBack callback) { string moduleNames; + if (node.isString()) { + return GetString(node, 'm', callback); + } if (GetArray(node, 'm', [&moduleNames](int c, const string &argValue) { if (!moduleNames.empty()) { moduleNames.append(",");