| | |
| | | access?: EnumOcrAccess; |
| | | scene?: string; |
| | | isOssUrl?: boolean; |
| | | response?: FileItem; |
| | | url?: string; |
| | | onSuccess?: (res: API.GetIdentityFrontOcrCommandResult) => any; |
| | | }; |
| | | |
| | |
| | | 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); |