人脸拍照修改
This commit is contained in:
parent
8e53b2025f
commit
f2f1cb4687
@ -95,6 +95,7 @@ export default async function tempRequest<T>(req: any): Promise<T> {
|
|||||||
}
|
}
|
||||||
}).catch(Error => {
|
}).catch(Error => {
|
||||||
console.info('test-error0' + url + ' error:resp: ' + JSON.stringify(Error.message))
|
console.info('test-error0' + url + ' error:resp: ' + JSON.stringify(Error.message))
|
||||||
|
httpRequest.destroy();
|
||||||
Prompt.showToast({
|
Prompt.showToast({
|
||||||
message: Error?.message,
|
message: Error?.message,
|
||||||
duration: 5000
|
duration: 5000
|
||||||
|
|||||||
@ -187,11 +187,10 @@ export default struct FaceCompare {
|
|||||||
this.param.pztd=this.param.rlls
|
this.param.pztd=this.param.rlls
|
||||||
const data=await takePhoto(this.param, this.context, 'jt/', 1,)
|
const data=await takePhoto(this.param, this.context, 'jt/', 1,)
|
||||||
this.base64=this.imageBase64 + data.base64
|
this.base64=this.imageBase64 + data.base64
|
||||||
console.log('mmmmt',this.base64)
|
|
||||||
faceCompare({
|
faceCompare({
|
||||||
sfzh: this.sfzh,
|
sfzh: this.sfzh,
|
||||||
firstImage: this.firstImage.substr(22),
|
secondImage: this.firstImage.substr(22),
|
||||||
secondImage: data.base64,
|
firstImage: data.base64,
|
||||||
type: 2,
|
type: 2,
|
||||||
verifyType: 1
|
verifyType: 1
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user