wupengfei
22 小时以前 176f0185c2b76cba8de4fc7b81260e7f68c51495
fix: bug
4个文件已修改
15 ■■■■ 已修改文件
apps/bMiniApp/auto-imports.d.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/auto-imports.d.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/hooks/identify.ts 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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'
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'
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;
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);