react_hsbc_teller 2.0.63 → 2.0.64

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "2.0.63",
3
+ "version": "2.0.64",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -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.63'
64
+ const SDK_VERISON = '2.0.64'
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,8 +727,9 @@ class Video extends Component {
727
727
  yPosition: 235 * SCALE,
728
728
  width: (420 * SCALE),
729
729
  height: (420 * SCALE)
730
- })
731
- const filePath = 'recordId_' + new Date().valueOf();
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;
@@ -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( Mival.id)
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){