From 0477b5e131dc388b21bd1a373b133d2997b8c027 Mon Sep 17 00:00:00 2001 From: sizhenzhen Date: Fri, 5 Sep 2025 14:48:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sizhenzhen --- entry/src/main/ets/pages/Index.ets | 33 ++++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index d6a6307..5d5b2ee 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -138,6 +138,24 @@ struct Index { this.authType.includes(userAuth.UserAuthType.FINGERPRINT) && this.isFingerprintLocked } + handleLocked(): boolean { + if (this.skipLockedBiometricAuth) { + if (this.isFaceLockedFn()) { + this.handleFaceLocked(); + return true; + } + if (this.isFingerprintLockedFn()) { + this.handleFingerprintLocked(); + return true; + } + if (this.isFaceAndFingerprintLocked()) { + this.handleFaceAndFingerprintLocked(); + return true; + } + } + return false; + } + handleAuthStart(): void { LogUtils.info(TAG, 'handleAuthStart'); try { @@ -158,19 +176,8 @@ struct Index { } } }) - if (that.skipLockedBiometricAuth) { - if (that.isFaceLockedFn()) { - that.handleFaceLocked(); - return; - } - if (that.isFingerprintLockedFn()) { - that.handleFingerprintLocked() - return; - } - if (that.isFaceAndFingerprintLocked()) { - that.handleFaceAndFingerprintLocked(); - return; - } + if (that.handleLocked()) { + return; } that.cmdData = cmdDataObj?.cmd || []; if (cmdDataObj?.pinSubType !== null && cmdDataObj?.pinSubType !== undefined) { -- Gitee