mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-27 00:20:44 +00:00
雷达打点接续100%修改
issue:https://gitee.com/openharmony/ability_dmsfwk/issues/I9TO9R Signed-off-by: liuxiaowei42 <liuxiaowei42@huawei.com>
This commit is contained in:
parent
ff19bced46
commit
4813d213ea
@ -798,7 +798,10 @@ bool DmsRadar::ClickIconDmsStartAbility(const std::string& func, int32_t errCode
|
||||
|
||||
bool DmsRadar::ClickIconDmsRecvOver(const std::string& func, int32_t errCode)
|
||||
{
|
||||
int32_t res = HiSysEventWrite(
|
||||
int32_t res = ERR_OK;
|
||||
StageRes stageRes = (errCode == ERR_OK) ? StageRes::STAGE_SUCC : StageRes::STAGE_FAIL;
|
||||
if (stageRes == StageRes::STAGE_SUCC) {
|
||||
res = HiSysEventWrite(
|
||||
APP_CONTINUE_DOMAIN,
|
||||
APPLICATION_CONTINUE_BEHAVIOR,
|
||||
HiviewDFX::HiSysEvent::EventType::BEHAVIOR,
|
||||
@ -808,6 +811,19 @@ bool DmsRadar::ClickIconDmsRecvOver(const std::string& func, int32_t errCode)
|
||||
BIZ_STAGE, static_cast<int32_t>(ClickIcon::DMS_RECV_OVER),
|
||||
STAGE_RES, static_cast<int32_t>(StageRes::STAGE_SUCC),
|
||||
BIZ_STATE, static_cast<int32_t>(BizState::BIZ_STATE_END));
|
||||
} else {
|
||||
res = HiSysEventWrite(
|
||||
APP_CONTINUE_DOMAIN,
|
||||
APPLICATION_CONTINUE_BEHAVIOR,
|
||||
HiviewDFX::HiSysEvent::EventType::BEHAVIOR,
|
||||
ORG_PKG, ORG_PKG_NAME,
|
||||
FUNC, func,
|
||||
BIZ_SCENE, static_cast<int32_t>(BizScene::CLICK_ICON),
|
||||
BIZ_STAGE, static_cast<int32_t>(ClickIcon::DMS_RECV_OVER),
|
||||
STAGE_RES, static_cast<int32_t>(StageRes::STAGE_SUCC),
|
||||
BIZ_STATE, static_cast<int32_t>(BizState::BIZ_STATE_END),
|
||||
ERROR_CODE, errCode);
|
||||
}
|
||||
if (res != ERR_OK) {
|
||||
HILOGE("ClickIconDmsRecvOver error, res:%{public}d", res);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user