提交 145f2fe3 编写于 作者: L liuziweicom

fix code

Signed-off-by: Nliuziweicom <liuziwei12@huawei.com>
上级 5be5552b
...@@ -72,12 +72,12 @@ setSurfaceId(surfaceId: string): void; ...@@ -72,12 +72,12 @@ setSurfaceId(surfaceId: string): void;
import userIAM_faceAuth from '@ohos.userIAM.faceAuth'; import userIAM_faceAuth from '@ohos.userIAM.faceAuth';
// 该surfaceId应该从XComponent控件获取,此处仅用作示例。 // 该surfaceId应该从XComponent控件获取,此处仅用作示例。
let surfaceId = "123456"; let surfaceId = '123456';
let manager = new userIAM_faceAuth.FaceAuthManager(); let manager = new userIAM_faceAuth.FaceAuthManager();
try { try {
manager.setSurfaceId(surfaceId); manager.setSurfaceId(surfaceId);
console.info("set surface id success"); console.info('set surface id success');
} catch (e) { } catch (e) {
console.error("set surface id failed, error = " + e); console.error('set surface id failed, error = ' + e);
} }
``` ```
...@@ -48,9 +48,9 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证 ...@@ -48,9 +48,9 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
// 查询认证能力是否支持 // 查询认证能力是否支持
try { try {
userIAM_userAuth.getAvailableStatus(userIAM_userAuth.UserAuthType.FACE, userIAM_userAuth.AuthTrustLevel.ATL1); userIAM_userAuth.getAvailableStatus(userIAM_userAuth.UserAuthType.FACE, userIAM_userAuth.AuthTrustLevel.ATL1);
console.info("current auth trust level is supported"); console.info('current auth trust level is supported');
} catch (error) { } catch (error) {
console.info("current auth trust level is not supported, error = " + error); console.info('current auth trust level is not supported, error = ' + error);
} }
``` ```
...@@ -79,7 +79,6 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证 ...@@ -79,7 +79,6 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
const widgetParam : userIAM_userAuth.WidgetParam = { const widgetParam : userIAM_userAuth.WidgetParam = {
title: '请输入密码', title: '请输入密码',
navigationButtonText: '返回', navigationButtonText: '返回',
windowMode: userIAM_userAuth.WindowModeType.DIALOG_BOX,
}; };
try { try {
//获取认证对象 //获取认证对象
...@@ -129,7 +128,6 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证 ...@@ -129,7 +128,6 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
const widgetParam : userIAM_userAuth.WidgetParam = { const widgetParam : userIAM_userAuth.WidgetParam = {
title: '请输入密码', title: '请输入密码',
navigationButtonText: '返回', navigationButtonText: '返回',
windowMode: userIAM_userAuth.WindowModeType.DIALOG_BOX,
}; };
try { try {
//获取认证对象 //获取认证对象
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册