IssueNo:#I9N7P7

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

Signed-off-by: daiyujia <daiyujia@huawei.com>
Change-Id: I56f6915e589333f8438c00fb88089ea5c5965b11
This commit is contained in:
daiyujia 2024-05-07 12:58:55 +00:00
parent a9776177f5
commit 32e7114a67

View File

@ -56,7 +56,7 @@ const string KEY_DEVICE_ID_TYPE = "device-id-type";
const string KEY_DEVICE_IDS = "device-ids";
const string KEY_ISSUER = "issuer";
const string KEY_APP_PRIVILEGE_CAPABILITIES = "app-privilege-capabilities";
const string KEY_APP_SERVICE_CAPABILITIES = "app-service-capabilities";
const string KEY_APP_SERVICES_CAPABILITIES = "app-services-capabilities";
const string VALUE_TYPE_RELEASE = "release";
const string VALUE_DIST_TYPE_APP_GALLERY = "app_gallery";
const string VALUE_DIST_TYPE_ENTERPRISE = "enterprise";
@ -230,7 +230,7 @@ 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_SERVICE_CAPABILITIES, out.appServiceCapabilities);
GetStringIfExist(obj, KEY_APP_SERVICES_CAPABILITIES, out.appServiceCapabilities);
}
#define RETURN_IF_STRING_IS_EMPTY(str, msg) \