react_hsbc_teller 2.0.35 → 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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +31 -7
package/package.json
CHANGED
|
@@ -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.
|
|
63
|
+
const SDK_VERISON = '2.0.37'
|
|
64
64
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
65
65
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
66
66
|
const { Option } = Select;
|
|
@@ -798,8 +798,21 @@ class Video extends Component {
|
|
|
798
798
|
url: '' // ⽔印图⽚ HTTP 地址
|
|
799
799
|
},
|
|
800
800
|
];
|
|
801
|
-
recordParam.tagPositions = [
|
|
802
|
-
|
|
801
|
+
recordParam.tagPositions = [{
|
|
802
|
+
tag: that.state.ipadTag,
|
|
803
|
+
xPosition: 0,
|
|
804
|
+
yPosition: 0,
|
|
805
|
+
width: 1280,
|
|
806
|
+
height: 720
|
|
807
|
+
},{
|
|
808
|
+
tag: 'tag1',
|
|
809
|
+
xPosition: 0,
|
|
810
|
+
yPosition: 0,
|
|
811
|
+
width: 0,
|
|
812
|
+
height: 0
|
|
813
|
+
}]
|
|
814
|
+
// recordParam.tagFilter = that.state.ipadTag
|
|
815
|
+
// recordParam.layoutParam = [that.state.ipadTag, 'tag1'];
|
|
803
816
|
console.log('recordParam', recordParam);
|
|
804
817
|
that.test_controller.StartRemoteRecord(filePath, recordParam, record_business_id+'_ipad')
|
|
805
818
|
};
|
|
@@ -1721,6 +1734,12 @@ class Video extends Component {
|
|
|
1721
1734
|
else if (Mival.typeId == 5006) { // 内网pib检测到敏感词
|
|
1722
1735
|
this.messageClick(Mival.content, 'error', Mival.data.userId)
|
|
1723
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
|
+
}
|
|
1724
1743
|
else if (Mival.typeId == 1220) {
|
|
1725
1744
|
// 一炒多的图片 1214
|
|
1726
1745
|
if (Mival.sessionId == this.state.sessionId) {
|
|
@@ -2059,7 +2078,7 @@ class Video extends Component {
|
|
|
2059
2078
|
console.error(err)
|
|
2060
2079
|
}
|
|
2061
2080
|
}
|
|
2062
|
-
saveVideoPoint = async (code, content) => {
|
|
2081
|
+
saveVideoPoint = async (code, content, prohibitedWords) => {
|
|
2063
2082
|
try {
|
|
2064
2083
|
let result = await API.saveVideoPoint({
|
|
2065
2084
|
title: POINT_TYPE[code],
|
|
@@ -2071,6 +2090,7 @@ class Video extends Component {
|
|
|
2071
2090
|
appId: this.state.appId,
|
|
2072
2091
|
recordId: this.state.recordId,
|
|
2073
2092
|
client: 'rm',
|
|
2093
|
+
prohibitedWords,
|
|
2074
2094
|
customerId: this.props.tellerAccount
|
|
2075
2095
|
});
|
|
2076
2096
|
} catch (err) {
|
|
@@ -3971,9 +3991,9 @@ class Video extends Component {
|
|
|
3971
3991
|
appCode: `HSBCCode`
|
|
3972
3992
|
}).then((re) => {
|
|
3973
3993
|
if (re.data.match) {
|
|
3974
|
-
this.saveVideoPoint('pwd', `${resultValue}`)
|
|
3975
3994
|
console.log('匹配到敏感词', re.data.matchRawTextItems)
|
|
3976
3995
|
let matchArr = re.data.matchRawTextItems.map(el => el.matchedText);
|
|
3996
|
+
this.saveVideoPoint('pwd', `${resultValue}`, matchArr.toString())
|
|
3977
3997
|
if (matchArr.length>0) {
|
|
3978
3998
|
matchArr.forEach(el => {
|
|
3979
3999
|
this.messageClick('检测到敏感词:' + matchArr, 'error')
|
|
@@ -4361,8 +4381,12 @@ class Video extends Component {
|
|
|
4361
4381
|
this.enableServerRecording(this.state.businessId)
|
|
4362
4382
|
}
|
|
4363
4383
|
handleOkLowPowerConfirm = () => {
|
|
4364
|
-
|
|
4365
|
-
|
|
4384
|
+
// 通知ipad,获取是否在充电的状态
|
|
4385
|
+
this.sendMessage({
|
|
4386
|
+
'typeId': 1224,
|
|
4387
|
+
'sessionId': this.state.sessionId,
|
|
4388
|
+
'userId': this.props.tellerAccount
|
|
4389
|
+
})
|
|
4366
4390
|
}
|
|
4367
4391
|
handleOkIpadLeaveConfirm = () => {
|
|
4368
4392
|
// 检测ipad是否入会
|