react_hsbc_teller 2.0.55 → 2.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +6 -6
package/package.json
CHANGED
|
@@ -63,7 +63,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
|
|
|
63
63
|
import axios from 'axios';
|
|
64
64
|
import CryptoJS from "crypto-js";
|
|
65
65
|
|
|
66
|
-
const SDK_VERISON = '2.0.
|
|
66
|
+
const SDK_VERISON = '2.0.56'
|
|
67
67
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
68
68
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
69
69
|
const { Option } = Select;
|
|
@@ -4829,7 +4829,7 @@ class Video extends Component {
|
|
|
4829
4829
|
handleFinishOcr = async (type) => {
|
|
4830
4830
|
// 非身份证直接入库
|
|
4831
4831
|
// if (type == 'noFace') {
|
|
4832
|
-
await this.
|
|
4832
|
+
await this.handleConfirmCallback()
|
|
4833
4833
|
// this.setState({
|
|
4834
4834
|
// idCardNameFace: this.state.idCardName,
|
|
4835
4835
|
// idCardNumberFace: this.state.idCardNumber,
|
|
@@ -4899,7 +4899,7 @@ class Video extends Component {
|
|
|
4899
4899
|
// }
|
|
4900
4900
|
}
|
|
4901
4901
|
// ocr结果入库
|
|
4902
|
-
|
|
4902
|
+
handleConfirmCallback = async () => {
|
|
4903
4903
|
try {
|
|
4904
4904
|
// 原始证件参数
|
|
4905
4905
|
let data = {
|
|
@@ -4937,7 +4937,7 @@ class Video extends Component {
|
|
|
4937
4937
|
if (result.code == 200) {
|
|
4938
4938
|
// console.log(data)
|
|
4939
4939
|
let item = this.state.videoList.find(el => el.userId == this.state.faceCustomerUid )
|
|
4940
|
-
item.hasOcr = 1; // 非身份证ocr
|
|
4940
|
+
item.hasOcr = this.state.documentType == 'ID_CARD' ? 2 : 1; // 非身份证ocr
|
|
4941
4941
|
// this.setState({
|
|
4942
4942
|
// videoList: this.state.videoList
|
|
4943
4943
|
// })
|
|
@@ -4947,8 +4947,8 @@ class Video extends Component {
|
|
|
4947
4947
|
}
|
|
4948
4948
|
// console.log(this.state.facialImgFront)
|
|
4949
4949
|
// console.log(`${data.idCardName}-${this.state.documentType}`)
|
|
4950
|
-
if (this.state.documentType == 'HK_MO_RESIDENCE_CARD' || this.state.documentType == 'TW_RESIDENCE_CARD') {
|
|
4951
|
-
//
|
|
4950
|
+
if (this.state.documentType == 'ID_CARD' || this.state.documentType == 'HK_MO_RESIDENCE_CARD' || this.state.documentType == 'TW_RESIDENCE_CARD') {
|
|
4951
|
+
// 身份证、居住证正反面需要拼接成一张图
|
|
4952
4952
|
combineBase64Images(this.state.facialImgFront, this.state.facialImgBack, (base64Image)=>{
|
|
4953
4953
|
saveBase64Image(base64Image, `${data.reviseIdCardName||data.idCardName}-${this.state.documentType}`)
|
|
4954
4954
|
})
|