From f2f1cb46873f72a0bd490f0dad0c250c8a380b54 Mon Sep 17 00:00:00 2001 From: lvyuankang <1344032923@qq.com> Date: Thu, 20 Feb 2025 16:33:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E8=84=B8=E6=8B=8D=E7=85=A7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/common/utils/tempRequest.ts | 1 + entry/src/main/ets/pages/compontents/FaceCompare.ets | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/entry/src/main/ets/common/utils/tempRequest.ts b/entry/src/main/ets/common/utils/tempRequest.ts index 6b1a3cd1..7e4e0def 100644 --- a/entry/src/main/ets/common/utils/tempRequest.ts +++ b/entry/src/main/ets/common/utils/tempRequest.ts @@ -95,6 +95,7 @@ export default async function tempRequest(req: any): Promise { } }).catch(Error => { console.info('test-error0' + url + ' error:resp: ' + JSON.stringify(Error.message)) + httpRequest.destroy(); Prompt.showToast({ message: Error?.message, duration: 5000 diff --git a/entry/src/main/ets/pages/compontents/FaceCompare.ets b/entry/src/main/ets/pages/compontents/FaceCompare.ets index 254fef4b..258c7ca6 100644 --- a/entry/src/main/ets/pages/compontents/FaceCompare.ets +++ b/entry/src/main/ets/pages/compontents/FaceCompare.ets @@ -187,11 +187,10 @@ export default struct FaceCompare { this.param.pztd=this.param.rlls const data=await takePhoto(this.param, this.context, 'jt/', 1,) this.base64=this.imageBase64 + data.base64 - console.log('mmmmt',this.base64) faceCompare({ sfzh: this.sfzh, - firstImage: this.firstImage.substr(22), - secondImage: data.base64, + secondImage: this.firstImage.substr(22), + firstImage: data.base64, type: 2, verifyType: 1 })