0820 Signed-off-by: 帝俊 <yexinjie@huawei.com>

This commit is contained in:
帝俊
2024-08-20 17:41:59 +08:00
parent 4c9c7fb986
commit 3384b40665
2 changed files with 2 additions and 2 deletions
@@ -1070,7 +1070,7 @@ std::shared_ptr<AppExecFwk::ADelegatorAbilityProperty> JsAbility::CreateADelegat
} else {
std::string::size_type pos = GetAbilityName().find(GetApplicationInfo()->bundleName);
if (pos == std::string::npos || pos != 0) {
property->fullName_ = GetApplicationInfo()->bundleName + "" + GetAbilityName();
property->fullName_ = GetApplicationInfo()->bundleName + "." + GetAbilityName();
} else {
property->fullName_ = GetAbilityName();
}
@@ -307,7 +307,7 @@ bool SimulatorImpl::ParseAbilityInfo(const std::string &abilitySrcPath, const st
abilityInfo_ = AppExecFwk::BundleContainer::GetInstance().GetAbilityInfo(options_.moduleName, abilityName);
} else {
auto path = abilitySrcPath;
path.erase(path.rfind(""));
path.erase(path.rfind("."));
auto abilityNameFromPath = path.substr(path.rfind('/') + 1, path.length());
abilityInfo_ = AppExecFwk::BundleContainer::GetInstance().GetAbilityInfo(
options_.moduleName, abilityNameFromPath);