update frameworks/native/executors/src/async_command/enroll_command.cpp.

Signed-off-by: liuziwei <liuziwei12@huawei.com>
This commit is contained in:
liuziwei 2024-08-14 12:08:29 +00:00 committed by Gitee
parent fb3d306153
commit 4b95e804d1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -54,8 +54,8 @@ ResultCode EnrollCommand::SendRequest()
IF_FALSE_LOGE_AND_RETURN_VAL(getExtraInfoRet == true, ResultCode::GENERAL_ERROR);
int32_t userId;
bool getuserId = attributes_->GetInt32Value(Attributes::ATTR_USER_ID, userId);
IF_FALSE_LOGE_AND_RETURN_VAL(getuserId == true, ResultCode::GENERAL_ERROR);
bool getUserId = attributes_->GetInt32Value(Attributes::ATTR_USER_ID, userId);
IF_FALSE_LOGE_AND_RETURN_VAL(getUserId == true, ResultCode::GENERAL_ERROR);
IamHitraceHelper traceHelper("hdi Enroll");
ResultCode ret = hdi->Enroll(scheduleId_, (EnrollParam) { tokenId, extraInfo, userId}, shared_from_this());