!209 修改启动bug

Merge pull request !209 from wangtiantian/bug_bool
This commit is contained in:
openharmony_ci 2021-12-23 14:22:19 +00:00 committed by Gitee
commit 1eed8a306f

View File

@ -419,11 +419,11 @@ void from_json(const nlohmann::json &jsonObject, AbilityInfo &abilityInfo)
false,
parseResult,
ArrayType::NOT_ARRAY);
GetValueIfFindKey<bool>(jsonObject,
GetValueIfFindKey<uint32_t>(jsonObject,
jsonObjectEnd,
JSON_KEY_BACKGROUND_MODES,
abilityInfo.backgroundModes,
JsonType::BOOLEAN,
JsonType::NUMBER,
false,
parseResult,
ArrayType::NOT_ARRAY);