From e9568ba88bfbc922edb941f7ec4d60385981b66e Mon Sep 17 00:00:00 2001 From: xinking129 Date: Sat, 7 Oct 2023 17:36:12 +0800 Subject: [PATCH] review code Signed-off-by: xinking129 --- .../innerkits/appverify/include/provision/provision_info.h | 1 + .../innerkits/appverify/src/provision/provision_verify.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/interfaces/innerkits/appverify/include/provision/provision_info.h b/interfaces/innerkits/appverify/include/provision/provision_info.h index 70e554c..beb78be 100644 --- a/interfaces/innerkits/appverify/include/provision/provision_info.h +++ b/interfaces/innerkits/appverify/include/provision/provision_info.h @@ -43,6 +43,7 @@ struct BundleInfo { std::string bundleName; std::string apl; std::string appFeature; + std::string appIdentifier; std::vector dataGroupIds; }; diff --git a/interfaces/innerkits/appverify/src/provision/provision_verify.cpp b/interfaces/innerkits/appverify/src/provision/provision_verify.cpp index 6161964..a93b989 100644 --- a/interfaces/innerkits/appverify/src/provision/provision_verify.cpp +++ b/interfaces/innerkits/appverify/src/provision/provision_verify.cpp @@ -73,6 +73,7 @@ const string VALUE_NOT_AFTER = "not-after"; const string KEY_BASEAPP_INFO = "baseapp-info"; const string KEY_PACKAGE_NAME = "package-name"; const string KEY_PACKAGE_CERT = "package-cert"; +const string KEY_APP_IDENTIFIER = "app-identifier"; const string GENERIC_BUNDLE_NAME = ".*"; const string VALUE_DEVELOPMENT_MODE = "1"; @@ -160,6 +161,7 @@ void ParseBundleInfo(const json& obj, ProvisionInfo& out) GetStringIfExist(bundleInfo, KEY_BUNDLE_NAME, out.bundleInfo.bundleName); GetStringIfExist(bundleInfo, KEY_APL, out.bundleInfo.apl); GetStringIfExist(bundleInfo, KEY_APP_FEATURE, out.bundleInfo.appFeature); + GetStringIfExist(bundleInfo, KEY_APP_IDENTIFIER, out.bundleInfo.appIdentifier); GetStringArrayIfExist(bundleInfo, KEY_DATA_GROUP_IDS, out.bundleInfo.dataGroupIds); } } -- Gitee