From ab6f761bc196b8fe69eeb51f889dc6f630601405 Mon Sep 17 00:00:00 2001 From: yangzk Date: Fri, 25 Oct 2024 01:51:07 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!10544?= =?UTF-8?q?=20:=20=E4=BF=AE=E5=A4=8D=E6=84=8F=E5=9B=BE=E6=A1=86=E6=9E=B6st?= =?UTF-8?q?oull=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/abilitymgr/src/insight_intent_execute_param.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/services/abilitymgr/src/insight_intent_execute_param.cpp b/services/abilitymgr/src/insight_intent_execute_param.cpp index f325604381..bf96c64088 100644 --- a/services/abilitymgr/src/insight_intent_execute_param.cpp +++ b/services/abilitymgr/src/insight_intent_execute_param.cpp @@ -82,20 +82,13 @@ bool InsightIntentExecuteParam::GenerateFromWant(const AAFwk::Want &want, TAG_LOGE(AAFwkTag::INTENT, "empty want"); return false; } - uint64_t insightIntentId = 0; - try { - insightIntentId = std::stoull(wantParams.GetStringParam(INSIGHT_INTENT_EXECUTE_PARAM_ID)); - } catch (...) { - TAG_LOGE(AAFwkTag::ABILITY, "invalid insight intent ID"); - return false; - } AppExecFwk::ElementName elementName = want.GetElement(); executeParam.bundleName_ = elementName.GetBundleName(); executeParam.moduleName_ = elementName.GetModuleName(); executeParam.abilityName_ = elementName.GetAbilityName(); executeParam.insightIntentName_ = wantParams.GetStringParam(INSIGHT_INTENT_EXECUTE_PARAM_NAME); - executeParam.insightIntentId_ = insightIntentId; + executeParam.insightIntentId_ = std::stoull(wantParams.GetStringParam(INSIGHT_INTENT_EXECUTE_PARAM_ID)); executeParam.executeMode_ = wantParams.GetIntParam(INSIGHT_INTENT_EXECUTE_PARAM_MODE, 0); auto insightIntentParam = wantParams.GetWantParams(INSIGHT_INTENT_EXECUTE_PARAM_PARAM);