react_hsbc_teller 2.0.63 → 2.0.65
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 +4 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +8 -7
package/package.json
CHANGED
|
@@ -61,7 +61,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
|
|
|
61
61
|
import axios from 'axios';
|
|
62
62
|
import CryptoJS from "crypto-js";
|
|
63
63
|
|
|
64
|
-
const SDK_VERISON = '2.0.
|
|
64
|
+
const SDK_VERISON = '2.0.65'
|
|
65
65
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
66
66
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
67
67
|
const { Option } = Select;
|
|
@@ -625,7 +625,7 @@ class Video extends Component {
|
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
// 开启录制
|
|
628
|
-
enableServerRecording = (record_business_id) => {
|
|
628
|
+
enableServerRecording = (record_business_id, type) => {
|
|
629
629
|
const that = this
|
|
630
630
|
const SCALE = 1.5
|
|
631
631
|
this.rateAll().then((res) => {
|
|
@@ -727,13 +727,14 @@ class Video extends Component {
|
|
|
727
727
|
yPosition: 235 * SCALE,
|
|
728
728
|
width: (420 * SCALE),
|
|
729
729
|
height: (420 * SCALE)
|
|
730
|
-
})
|
|
731
|
-
|
|
730
|
+
})
|
|
731
|
+
// 开启业务录制的时候type传值,在后面加标识,全局的不加
|
|
732
|
+
const filePath = type ? ('recordId_' + new Date().valueOf() + '_business') : ('recordId_' + new Date().valueOf());
|
|
732
733
|
const recordParam = {};
|
|
733
734
|
recordParam.width = 1280 * SCALE;
|
|
734
735
|
recordParam.height = 720 * SCALE;
|
|
735
736
|
recordParam.recordTotalStream = 0;
|
|
736
|
-
recordParam.startTimeout =
|
|
737
|
+
recordParam.startTimeout = 10;
|
|
737
738
|
recordParam.splitType = 0;
|
|
738
739
|
recordParam.endType = 1;
|
|
739
740
|
recordParam.crf = 26
|
|
@@ -776,7 +777,7 @@ class Video extends Component {
|
|
|
776
777
|
recordParam.width = 1280;
|
|
777
778
|
recordParam.height = 720;
|
|
778
779
|
recordParam.recordTotalStream = 0;
|
|
779
|
-
recordParam.startTimeout =
|
|
780
|
+
recordParam.startTimeout = 10;
|
|
780
781
|
recordParam.splitType = 0;
|
|
781
782
|
recordParam.endType = 1;
|
|
782
783
|
recordParam.crf = 26
|
|
@@ -1993,7 +1994,7 @@ class Video extends Component {
|
|
|
1993
1994
|
console.log('业务录制开启')
|
|
1994
1995
|
this.state.businessId = Mival.id;
|
|
1995
1996
|
this.saveLog('Start business recording')
|
|
1996
|
-
this.enableServerRecording(
|
|
1997
|
+
this.enableServerRecording(Mival.id, 'startBusinessRecording')
|
|
1997
1998
|
if (this.state.ipadTag) this.enableIpadRecording(Mival.id)
|
|
1998
1999
|
|
|
1999
2000
|
if (this.props.whetherDetectFace && this.props.recordMode != 2){
|