IssueNo:#I9NUTR

Description:修改解析appServicesCapabilities
Sig:bundleManager
Feature or Bugfix:Bugfix
Binary Source:No

Signed-off-by: daiyujia <daiyujia@huawei.com>
Change-Id: Ic779e1a02f98ac1cebcbb667a1ed1577a86fe9c4
This commit is contained in:
daiyujia 2024-05-09 07:05:15 +00:00
parent 32e7114a67
commit b70c4cb7d3

View File

@ -230,7 +230,11 @@ void from_json(const json& obj, ProvisionInfo& out)
GetStringArrayIfExist(obj, KEY_APP_PRIVILEGE_CAPABILITIES, out.appPrivilegeCapabilities);
ParseValidity(obj, out.validity);
ParseMetadata(obj, out);
GetStringIfExist(obj, KEY_APP_SERVICES_CAPABILITIES, out.appServiceCapabilities);
if (obj.find(KEY_APP_SERVICES_CAPABILITIES) != obj.end()) {
if (obj[KEY_APP_SERVICES_CAPABILITIES].dump().size() > 0) {
out.appServiceCapabilities = obj[KEY_APP_SERVICES_CAPABILITIES].dump();
}
}
}
#define RETURN_IF_STRING_IS_EMPTY(str, msg) \