回退 'Pull Request !10599 : 【挑单5.0.1release】修复意图框架stoull处理问题'

This commit is contained in:
yangzk 2024-10-23 09:56:25 +00:00 committed by Gitee
parent ce8cba4d7c
commit c829f0a6f3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 14 deletions

View File

@ -55,10 +55,6 @@ config("ability_manager_public_config") {
}
}
config("ability_manager_exception_config") {
cflags_cc = [ "-fexceptions" ]
}
ohos_shared_library("ability_manager") {
branch_protector_ret = "pac_ret"
@ -113,8 +109,6 @@ ohos_shared_library("ability_manager") {
]
}
configs = [ ":ability_manager_exception_config" ]
public_configs = [
":ability_manager_public_config",
"${ability_runtime_services_path}/abilitymgr:abilityms_config",

View File

@ -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);