react_hsbc_teller 2.0.11 → 2.0.12

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.11",
3
+ "version": "2.0.12",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -205,6 +205,8 @@ userExit =(val)=>{
205
205
  sessionId={this.state.sessionId}
206
206
  imRoomId={this.state.imRoomId}
207
207
  userSide={this.state.userSide}
208
+ whetherDetectFace={true}
209
+ whetherDetectLight={true}
208
210
  prohibitPrompt={this.state.prohibitPrompt}
209
211
  voiceColor={this.state.voiceColor}
210
212
  titleBackground={this.state.titleBackground}
@@ -53,7 +53,7 @@ import Step from '../components/step/step.jsx'
53
53
  import axios from 'axios';
54
54
  import CryptoJS from "crypto-js";
55
55
 
56
- const SDK_VERISON = '2.0.11'
56
+ const SDK_VERISON = '2.0.12'
57
57
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
58
58
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
59
59
  const { Option } = Select;
@@ -349,6 +349,7 @@ class Video extends Component {
349
349
  try {
350
350
  let result = await API.createRoom({
351
351
  staffId: this.props.tellerAccount,
352
+ staffName: this.props.staffName,
352
353
  activityId: this.props.businessNumber,
353
354
  callbackUrl: this.props.callbackUrl,
354
355
  meetingDuration: this.props.meetingDuration,
@@ -1725,8 +1726,12 @@ class Video extends Component {
1725
1726
  this.saveLog('Start business recording')
1726
1727
  this.enableServerRecording( Mival.id)
1727
1728
 
1728
- this.startFaceDetection();
1729
- this.startImageDetection();
1729
+ if (this.props.whetherDetectFace){
1730
+ this.startFaceDetection();
1731
+ }
1732
+ if (this.props.whetherDetectLight){
1733
+ this.startImageDetection();
1734
+ }
1730
1735
  } else if (Mival.status == 2) {
1731
1736
  // 关闭了业务录制
1732
1737
  console.log('业务录制关闭')
@@ -3594,20 +3599,6 @@ class Video extends Component {
3594
3599
  }
3595
3600
  componentWillMount() {
3596
3601
  console.log('hsbc_teller_sdk', SDK_VERISON)
3597
- // window.document.startRecord = () => {
3598
- // this.enableServerRecording();
3599
- // }
3600
- // window.document.stopRecord = (recordId) => {
3601
- // this.test_controller.StopRemoteRecord(recordId || this.state.recordId)
3602
- // }
3603
- // window.document.detectNetworkWeak = () => {
3604
- // console.log('detectNetworkWeak')
3605
- // this.test_controller.detectNetworkWeak()
3606
- // }
3607
- // window.document.start = () => {
3608
- // this.startFaceDetection();
3609
- // this.startImageDetection();
3610
- // }
3611
3602
  let arr = []
3612
3603
  for(let i=1;i<=12;i++){
3613
3604
  arr.push({
@@ -6719,6 +6710,8 @@ Video.defaultProps = {
6719
6710
  shareMask: false,
6720
6711
  isOpenSound: false, // true开启进出音效 false不开启
6721
6712
  isWeakSound: false,
6713
+ whetherDetectFace: false, // 是否在双录时开启人脸检测
6714
+ whetherDetectLight: false, // 是否在双录时开启背光检测
6722
6715
  userSide: 2,
6723
6716
  meetingDuration: null, // 会议时长,单位小时
6724
6717
  recordMode: 1, // 录制模式 1远程录制 2网点录制
@@ -6726,6 +6719,7 @@ Video.defaultProps = {
6726
6719
  customerId: "", //客户号
6727
6720
  salesBranchCode: "", //网点编号(分行号)
6728
6721
  financialOffice: "", // 理财室
6722
+ staffName: '', // 坐席名称
6729
6723
  logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',
6730
6724
  internalUrl: 'https://wp-staff-gateway.wealth-platform.uat.ali.cloud.cn.hsbc/meeting-ui/OHB/CN/HSBC?chnlID=OHB&locale=zh_CN&chnlCC=CN&chnlGMC=HSBC&targetFunc=supervisorMeeting&sourceFunc=rmMeeting'
6731
6725
  }