react_hsbc_teller 2.0.41 → 2.0.43
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 +10 -4
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.43'
|
|
64
64
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
65
65
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
66
66
|
const { Option } = Select;
|
|
@@ -4024,9 +4024,13 @@ class Video extends Component {
|
|
|
4024
4024
|
appCode: `HSBCCode`
|
|
4025
4025
|
}).then((re) => {
|
|
4026
4026
|
if (re.data.match) {
|
|
4027
|
-
|
|
4028
|
-
let
|
|
4029
|
-
|
|
4027
|
+
let matchArr = re.data.matchRawTextItems.map(el => el.matchedRawKeywords);
|
|
4028
|
+
let resultFormat = resultValue;
|
|
4029
|
+
re.data.matchRawTextItems.sort((a,b)=> b.matchedText.length - a.matchedText.length).forEach(el => {
|
|
4030
|
+
resultFormat = resultFormat.replace(el.matchedText, el.matchedRawKeywords)
|
|
4031
|
+
})
|
|
4032
|
+
console.log('敏感词:', resultValue, resultFormat)
|
|
4033
|
+
this.saveVideoPoint('pwd', `${resultFormat}`, matchArr.toString())
|
|
4030
4034
|
if (matchArr.length>0) {
|
|
4031
4035
|
this.messageClick('检测到敏感词:' + matchArr, 'error')
|
|
4032
4036
|
}
|
|
@@ -5449,6 +5453,7 @@ class Video extends Component {
|
|
|
5449
5453
|
navigator.mediaDevices.getDisplayMedia({
|
|
5450
5454
|
video: true,
|
|
5451
5455
|
preferCurrentTab: true,
|
|
5456
|
+
surfaceSwitching: "exclude"
|
|
5452
5457
|
// audio: true
|
|
5453
5458
|
// video: {
|
|
5454
5459
|
// width: document.body.clientWidth,
|
|
@@ -5554,6 +5559,7 @@ class Video extends Component {
|
|
|
5554
5559
|
navigator.mediaDevices.getDisplayMedia({
|
|
5555
5560
|
video: true,
|
|
5556
5561
|
preferCurrentTab: true,
|
|
5562
|
+
surfaceSwitching: "exclude"
|
|
5557
5563
|
})
|
|
5558
5564
|
.then((stream) => {
|
|
5559
5565
|
if (streamRecord) {
|