From 42eb8a173c746830a78e200b593c39b626d75579 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 23 十二月 2025 10:49:03 +0800
Subject: [PATCH] fix: 甲方小程序

---
 packages/hooks/identify.ts |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/packages/hooks/identify.ts b/packages/hooks/identify.ts
index 63b0a62..5db5d8e 100644
--- a/packages/hooks/identify.ts
+++ b/packages/hooks/identify.ts
@@ -1,26 +1,20 @@
 import { EnumOcrAccess } from '@12333/constants';
-import * as accountServices from '@12333/services/api/Account';
 import * as ocrUtilsServices from '@12333/services/apiV2/ocrUtils';
 import { FileItem } from '@nutui/nutui-taro/dist/types/__VUE/uploader/type';
 import _ from 'lodash';
 
 type VatLicenseOptions = {
-  onSuccess?: (res: API.LicenseOcrModel) => any;
+  onSuccess?: (res: API.BaiduOcrBusinessLicenseResultModel) => any;
 };
 
 export async function vatLicense(response: FileItem, options: VatLicenseOptions = {}) {
   try {
     if (response?.url) {
       const { onSuccess } = options;
-      let res = await accountServices.vatLicense({
+      let res = await ocrUtilsServices.getLicenseOcr({
         url: response.url,
       });
-      onSuccess?.(
-        _.mapValues(res, (x) => {
-          if (x === '鏃�') return '';
-          return x;
-        })
-      );
+      onSuccess?.(res.model);
     }
   } catch (error) {}
 }

--
Gitblit v1.10.0