react_hsbc_teller 2.0.36 → 2.0.37

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.36",
3
+ "version": "2.0.37",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -60,7 +60,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
60
60
  import axios from 'axios';
61
61
  import CryptoJS from "crypto-js";
62
62
 
63
- const SDK_VERISON = '2.0.36'
63
+ const SDK_VERISON = '2.0.37'
64
64
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
65
65
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
66
66
  const { Option } = Select;
@@ -1734,6 +1734,12 @@ class Video extends Component {
1734
1734
  else if (Mival.typeId == 5006) { // 内网pib检测到敏感词
1735
1735
  this.messageClick(Mival.content, 'error', Mival.data.userId)
1736
1736
  }
1737
+ else if (Mival.typeId == 5007) { // ipad充电状态
1738
+ if (Mival.type == '1') { // 1充电 2不在充电
1739
+ this.setState({ ipadLowPowerErrorModalVisible: false})
1740
+ clearTimeout(this.ipadLowPowerPlay)
1741
+ }
1742
+ }
1737
1743
  else if (Mival.typeId == 1220) {
1738
1744
  // 一炒多的图片 1214
1739
1745
  if (Mival.sessionId == this.state.sessionId) {
@@ -2072,7 +2078,7 @@ class Video extends Component {
2072
2078
  console.error(err)
2073
2079
  }
2074
2080
  }
2075
- saveVideoPoint = async (code, content) => {
2081
+ saveVideoPoint = async (code, content, prohibitedWords) => {
2076
2082
  try {
2077
2083
  let result = await API.saveVideoPoint({
2078
2084
  title: POINT_TYPE[code],
@@ -2084,6 +2090,7 @@ class Video extends Component {
2084
2090
  appId: this.state.appId,
2085
2091
  recordId: this.state.recordId,
2086
2092
  client: 'rm',
2093
+ prohibitedWords,
2087
2094
  customerId: this.props.tellerAccount
2088
2095
  });
2089
2096
  } catch (err) {
@@ -3984,9 +3991,9 @@ class Video extends Component {
3984
3991
  appCode: `HSBCCode`
3985
3992
  }).then((re) => {
3986
3993
  if (re.data.match) {
3987
- this.saveVideoPoint('pwd', `${resultValue}`)
3988
3994
  console.log('匹配到敏感词', re.data.matchRawTextItems)
3989
3995
  let matchArr = re.data.matchRawTextItems.map(el => el.matchedText);
3996
+ this.saveVideoPoint('pwd', `${resultValue}`, matchArr.toString())
3990
3997
  if (matchArr.length>0) {
3991
3998
  matchArr.forEach(el => {
3992
3999
  this.messageClick('检测到敏感词:' + matchArr, 'error')
@@ -4374,8 +4381,12 @@ class Video extends Component {
4374
4381
  this.enableServerRecording(this.state.businessId)
4375
4382
  }
4376
4383
  handleOkLowPowerConfirm = () => {
4377
- this.setState({ ipadLowPowerErrorModalVisible: false})
4378
- clearTimeout(this.ipadLowPowerPlay)
4384
+ // 通知ipad,获取是否在充电的状态
4385
+ this.sendMessage({
4386
+ 'typeId': 1224,
4387
+ 'sessionId': this.state.sessionId,
4388
+ 'userId': this.props.tellerAccount
4389
+ })
4379
4390
  }
4380
4391
  handleOkIpadLeaveConfirm = () => {
4381
4392
  // 检测ipad是否入会