提交 b37a4c2f 编写于 作者: Z zhouyan

fixed 1c1c09cf from https://gitee.com/yydwfzysy/docs/pulls/22622

访问控制资料问题修复
Signed-off-by: Nzhouyan <zhouyan160@huawei.com>
Change-Id: I9b1fbe8693356a610d8f75f1a4eca8dc4b1c248c
上级 5ba07bc6
......@@ -176,10 +176,10 @@
async function checkAccessToken(permission: Permissions): Promise<abilityAccessCtrl.GrantStatus> {
let atManager = abilityAccessCtrl.createAtManager();
let grantStatus: abilityAccessCtrl.GrantStatus;
let grantStatus: abilityAccessCtrl.GrantStatus = abilityAccessCtrl.GrantStatus.PERMISSION_DENIED;
// 获取应用程序的accessTokenID
let tokenId: number;
let tokenId: number = 0;
try {
let bundleInfo: bundleManager.BundleInfo = await bundleManager.getBundleInfoForSelf(bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION);
let appInfo: bundleManager.ApplicationInfo = bundleInfo.appInfo;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册