mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-19 19:33:46 -04:00
!83 【3.1-release】支持moduleNames传入string参数类型
Merge pull request !83 from fyz1019/cherry-pick-1676612839
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