mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-19 11:31:44 -04:00
支持moduleNames传入string参数类型 Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
@@ -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(",");
|
||||
|
||||
Reference in New Issue
Block a user