From 176f0185c2b76cba8de4fc7b81260e7f68c51495 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 22 九月 2025 16:29:14 +0800 Subject: [PATCH] fix: bug --- apps/cMiniApp/auto-imports.d.ts | 2 +- apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue | 3 +-- apps/bMiniApp/auto-imports.d.ts | 2 +- packages/hooks/identify.ts | 8 ++++---- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/bMiniApp/auto-imports.d.ts b/apps/bMiniApp/auto-imports.d.ts index dc14f8e..a16c0b0 100644 --- a/apps/bMiniApp/auto-imports.d.ts +++ b/apps/bMiniApp/auto-imports.d.ts @@ -120,7 +120,7 @@ // for type re-export declare global { // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' import('vue') // @ts-ignore export type { BackType, BackType } from './src/constants/enum' diff --git a/apps/cMiniApp/auto-imports.d.ts b/apps/cMiniApp/auto-imports.d.ts index e2b9d41..6ba5ad4 100644 --- a/apps/cMiniApp/auto-imports.d.ts +++ b/apps/cMiniApp/auto-imports.d.ts @@ -104,7 +104,7 @@ // for type re-export declare global { // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' import('vue') // @ts-ignore export type { BackType, BackType } from './src/constants/enum' diff --git a/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue b/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue index a7a1cef..dae5564 100644 --- a/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue +++ b/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue @@ -157,9 +157,8 @@ function handleFrontImgUrlChange(response: FileItem) { userCredentialVerifyOcrIDCard({ - response: response, + url: response?.url, access: EnumOcrAccess.Baidu, - isOssUrl: true, onSuccess(res) { if (res.model?.name) form.name = res.model?.name; if (res.model?.identity) form.identity = res.model?.identity; diff --git a/packages/hooks/identify.ts b/packages/hooks/identify.ts index 230cb63..63b0a62 100644 --- a/packages/hooks/identify.ts +++ b/packages/hooks/identify.ts @@ -29,7 +29,7 @@ access?: EnumOcrAccess; scene?: string; isOssUrl?: boolean; - response?: FileItem; + url?: string; onSuccess?: (res: API.GetIdentityFrontOcrCommandResult) => any; }; @@ -37,11 +37,11 @@ options: UserCredentialVerifyOcrIDCardOptions = {} ) { try { - const { onSuccess, access, isOssUrl, response, scene } = options; - if (response?.path) { + const { onSuccess, access, isOssUrl, url, scene } = options; + if (url) { let res = await ocrUtilsServices.getIdentityFrontOcr({ access: access, - url: response.path, + url: url, isOssUrl: isOssUrl, }); onSuccess?.(res); -- Gitblit v1.9.1