react_hsbc_teller 2.0.42 → 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 +8 -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
|
}
|