react_hsbc_teller 2.0.19 → 2.0.21

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.19",
3
+ "version": "2.0.21",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -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.19'
56
+ const SDK_VERISON = '2.0.21'
57
57
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
58
58
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
59
59
  const { Option } = Select;
@@ -1394,7 +1394,7 @@ class Video extends Component {
1394
1394
 
1395
1395
  clearTimeout(this.loopPlay)
1396
1396
  // 画中画循环播放逻辑
1397
- if (document.hidden && !this.state.businessRecordId) {
1397
+ if (document.hidden && this.state.businessRecordId) {
1398
1398
  this.setState({
1399
1399
  isPictureConfirmModalVisible: true
1400
1400
  })
@@ -1509,7 +1509,7 @@ class Video extends Component {
1509
1509
  }, ()=>{
1510
1510
  this.pictureInPicture('Refresh')
1511
1511
  })
1512
- this.messageClick('客户人脸已离框', 'error')
1512
+ this.messageClick('客户切换其他软件', 'error')
1513
1513
  }
1514
1514
  }
1515
1515
  else if (Mival.typeId == 3003) { // app进入前台
@@ -1527,15 +1527,27 @@ class Video extends Component {
1527
1527
  }
1528
1528
  }
1529
1529
  else if (Mival.typeId == 5001) { // 客户端离框
1530
- this.messageClick('客户人脸已离框', 'error')
1530
+ let TITLE = '客户'
1531
+ if (Mival.data && Mival.data.userId) {
1532
+ TITLE = this.getUserTitle(Mival.data.userId)
1533
+ }
1534
+ this.messageClick(TITLE+'人脸已离框', 'error')
1531
1535
  // this.saveVideoPoint('ffd', '客户人脸离框');
1532
1536
  }
1533
- else if (Mival.typeId == 5002) { // 客户端
1534
- this.messageClick('客户背光、曝光过度', 'error')
1537
+ else if (Mival.typeId == 5002) { // 客户端背光
1538
+ let TITLE = '客户'
1539
+ if (Mival.data && Mival.data.userId) {
1540
+ TITLE = this.getUserTitle(Mival.data.userId)
1541
+ }
1542
+ this.messageClick(TITLE+'背光、曝光过度', 'error')
1535
1543
  // this.saveVideoPoint('env', '客户端背光、曝光过度');
1536
1544
  }
1537
1545
  else if (Mival.typeId == 5003) { // 客户端弱网
1538
- this.messageClick('客户当前网络较弱', 'error')
1546
+ let TITLE = '客户'
1547
+ if (Mival.data && Mival.data.userId) {
1548
+ TITLE = this.getUserTitle(Mival.data.userId)
1549
+ }
1550
+ this.messageClick(TITLE+'当前网络较弱', 'error')
1539
1551
  // this.saveVideoPoint('wnd', '客户端弱网');
1540
1552
  }
1541
1553
  else if (Mival.typeId == 1220) {
@@ -1742,6 +1754,13 @@ class Video extends Component {
1742
1754
  this.endSessionValue();
1743
1755
  }
1744
1756
  }
1757
+ getUserTitle = (userId) => {
1758
+ const user = this.state.videoList.find(el => el.userId == userId)
1759
+ if (!user) return '客户'
1760
+ if (user.isPIBIntranet) return '行内人员'
1761
+ else if (user.userSide == 1) return '访客'
1762
+ else return '客户'
1763
+ }
1745
1764
  startFaceDetection = () => {
1746
1765
  console.log('startFaceDetection!!!!')
1747
1766
  clearInterval(this.state.faceDetectionTimer);