支持moduleNames传入string参数类型

Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
fangyunzhong
2023-02-17 05:42:27 +00:00
parent 3a14052303
commit 0e4321c9f9
+3
View File
@@ -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(",");