fix convert

Signed-off-by: 韩震 <hanzhen10@huawei.com>
Change-Id: I4b16bf2a5e9b0572a6e30191f59a5d2f5302412e
This commit is contained in:
韩震
2022-03-15 19:11:34 +08:00
parent f92da8b92c
commit 128a4cf2bd
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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_);
+3 -3
View File
@@ -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) {