From a69bf92c8907eb1fed227afb156ff0e1c5821c24 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期日, 19 十月 2025 16:16:12 +0800
Subject: [PATCH] fix: bug
---
packages/hooks/identify.ts | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
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