mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-18 09:14:48 -04:00
@@ -91,8 +91,8 @@ private:
|
||||
std::string moduleName_;
|
||||
ModuleType moduleType_;
|
||||
std::string mainAbility_;
|
||||
int32_t abilityIconId_;
|
||||
int32_t abilityLabelId_;
|
||||
int64_t abilityIconId_;
|
||||
int64_t abilityLabelId_;
|
||||
std::map<std::string, std::set<uint32_t>> jsonCheckIds_;
|
||||
static const std::map<std::string, ModuleType> MODULE_TYPES;
|
||||
static const std::map<std::string, std::string> JSON_STRING_IDS;
|
||||
|
||||
@@ -379,7 +379,7 @@ bool ConfigParser::ParseJsonArrayRef(cJSON *parent, const string &key, cJSON *no
|
||||
return false;
|
||||
}
|
||||
if (update) {
|
||||
cJSON_AddItemToArray(array, cJSON_CreateNumber(atoi(value.c_str())));
|
||||
cJSON_AddItemToArray(array, cJSON_CreateNumber(atoll(value.c_str())));
|
||||
}
|
||||
}
|
||||
cJSON_AddItemToObject(parent, (key + "Id").c_str(), array);
|
||||
@@ -407,8 +407,8 @@ bool ConfigParser::ParseJsonStringRef(cJSON *parent, const string &key, cJSON *n
|
||||
return false;
|
||||
}
|
||||
if (update) {
|
||||
cJSON_AddItemToObject(parent, (key + "Id").c_str(), cJSON_CreateNumber(atoi(value.c_str())));
|
||||
AddCheckNode(key, static_cast<uint32_t>(atoi(value.c_str())));
|
||||
cJSON_AddItemToObject(parent, (key + "Id").c_str(), cJSON_CreateNumber(atoll(value.c_str())));
|
||||
AddCheckNode(key, static_cast<uint32_t>(atoll(value.c_str())));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user