mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-11-27 01:40:49 +00:00
fix: 修改appID获取方式
Signed-off-by: 居凯 <shun0304@126.com> Change-Id: Ie4eb929224745303c6ce68e1bcf2e74f0d8d946a
This commit is contained in:
parent
2861f24053
commit
20c481a277
@ -359,8 +359,8 @@ bool IpcCommon::GetCallingAppID(IPCObjectStub &stub, std::string &callingAppID)
|
||||
return false;
|
||||
}
|
||||
|
||||
HapTokenInfo hapTokenInfo;
|
||||
int result = AccessTokenKit::GetHapTokenInfo(tokenId, hapTokenInfo);
|
||||
HapTokenInfoExt hapTokenInfo;
|
||||
int result = AccessTokenKit::GetHapTokenInfoExtension(tokenId, hapTokenInfo);
|
||||
if (result != SUCCESS) {
|
||||
IAM_LOGE("failed to get hap token info, result = %{public}d", result);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user