mirror of
https://github.com/openharmony/useriam_user_auth.git
synced 2026-07-21 01:25:22 -04:00
fix convert
Signed-off-by: 韩震 <hanzhen10@huawei.com> Change-Id: I4b16bf2a5e9b0572a6e30191f59a5d2f5302412e
This commit is contained in:
@@ -33,7 +33,7 @@ Napi_SetPropertyRequest AuthBuild::SetPropertyRequestBuild(napi_env env, napi_va
|
||||
return request;
|
||||
}
|
||||
request.authType_ = convert_.GetInt32ValueByKey(env, object, "authType");
|
||||
request.key_ = (uint32_t)convert_.GetInt32ValueByKey(env, object, "key");
|
||||
request.key_ = static_cast<uint32_t>(convert_.GetInt32ValueByKey(env, object, "key"));
|
||||
request.setInfo_ = convert_.NapiGetValueUint8Array(env, object, "setInfo");
|
||||
USERAUTH_HILOGI(MODULE_JS_NAPI, "AuthBuild::SetPropertyRequestBuild authType = %{public}d",
|
||||
request.authType_);
|
||||
|
||||
@@ -138,7 +138,7 @@ void UserAuthService::GetProperty(const GetPropertyRequest request, sptr<IUserAu
|
||||
USERAUTH_HILOGE(MODULE_SERVICE, "Failed to add death recipient UserAuthServiceCallbackDeathRecipient");
|
||||
}
|
||||
|
||||
callerID = (uint64_t)this->GetCallingUid();
|
||||
callerID = static_cast<uint64_t>(this->GetCallingUid());
|
||||
callerName = std::to_string(callerID);
|
||||
|
||||
userauthController_.GetPropAuthInfo(userID, callerName, callerID, request, callback);
|
||||
@@ -165,7 +165,7 @@ void UserAuthService::SetProperty(const SetPropertyRequest request, sptr<IUserAu
|
||||
USERAUTH_HILOGE(MODULE_SERVICE, "Failed to add death recipient UserAuthServiceCallbackDeathRecipient");
|
||||
}
|
||||
|
||||
callerID = (uint64_t)this->GetCallingUid();
|
||||
callerID = static_cast<uint64_t>(this->GetCallingUid());
|
||||
callerName = std::to_string(callerID);
|
||||
|
||||
ret = userauthController_.SetExecutorProp(callerID, callerName, request, callback);
|
||||
@@ -322,7 +322,7 @@ int32_t UserAuthService::GetControllerData(sptr<IUserAuthCallback> &callback, Au
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
callerID = (uint64_t)this->GetCallingUid();
|
||||
callerID = static_cast<uint64_t>(this->GetCallingUid());
|
||||
callerName = std::to_string(callerID);
|
||||
|
||||
if (userauthController_.GenerateContextID(contextID) != SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user