react_hsbc_teller 2.0.17 → 2.0.18
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/demo/demo.js +1 -0
- package/packages/pages/video/video.jsx +14 -2
package/package.json
CHANGED
package/packages/demo/demo.js
CHANGED
|
@@ -31,6 +31,7 @@ roomId
|
|
|
31
31
|
// roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
32
32
|
// baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
|
|
33
33
|
// resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
34
|
+
// resourcePath:'http://121.196.19.70:8027/',
|
|
34
35
|
roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
|
|
35
36
|
baseURL:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
|
|
36
37
|
resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/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.
|
|
56
|
+
const SDK_VERISON = '2.0.18'
|
|
57
57
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
58
58
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
59
59
|
const { Option } = Select;
|
|
@@ -86,6 +86,7 @@ let muteJson = new Map()
|
|
|
86
86
|
// let dateTime = 0
|
|
87
87
|
let messageValue = ''
|
|
88
88
|
let messageValueMap = new Map()
|
|
89
|
+
let third_id_Map = new Map()
|
|
89
90
|
// let beautyType = false
|
|
90
91
|
// let beautyNum = 0 // 0-关闭 1--弱 2--中 5---高
|
|
91
92
|
let rateList = []
|
|
@@ -2760,6 +2761,10 @@ class Video extends Component {
|
|
|
2760
2761
|
// 结束服务端录制成功
|
|
2761
2762
|
this.test_controller.OnStopRemoteRecordSucc = (recordId, record_third_id) => {
|
|
2762
2763
|
console.log('结束服务端录制成功', recordId, record_third_id);
|
|
2764
|
+
// 重进会议前端会丢失之前的third_id,从服务端去取
|
|
2765
|
+
if (!record_third_id && third_id_Map.get(recordId)) {
|
|
2766
|
+
record_third_id = third_id_Map.get(recordId)
|
|
2767
|
+
}
|
|
2763
2768
|
if (!record_third_id) {
|
|
2764
2769
|
this.videoRecordCallback('2', true)
|
|
2765
2770
|
this.saveLog('mrtc OnStopRemoteRecordSucc, recordId='+recordId)
|
|
@@ -2779,6 +2784,10 @@ class Video extends Component {
|
|
|
2779
2784
|
record_third_id
|
|
2780
2785
|
) => {
|
|
2781
2786
|
console.log('结束服务端录制失败', recordId, err_code, err_msg, record_third_id)
|
|
2787
|
+
// 重进会议前端会丢失之前的third_id,从服务端去取
|
|
2788
|
+
if (!record_third_id && third_id_Map.get(recordId)) {
|
|
2789
|
+
record_third_id = third_id_Map.get(recordId)
|
|
2790
|
+
}
|
|
2782
2791
|
if (!record_third_id) {
|
|
2783
2792
|
this.videoRecordCallback('2', false)
|
|
2784
2793
|
this.saveLog('mrtc OnStopRemoteRecordFailed, err_code='+err_code)
|
|
@@ -3508,7 +3517,7 @@ class Video extends Component {
|
|
|
3508
3517
|
loading: true,
|
|
3509
3518
|
})
|
|
3510
3519
|
const that = this
|
|
3511
|
-
axios.get(this.props.resourcePath +
|
|
3520
|
+
axios.get(this.props.resourcePath + `/mcu.js?v=${SDK_VERISON}`)
|
|
3512
3521
|
.then(response => this.addToScriptClick()).catch(function (error) {
|
|
3513
3522
|
console.log(error);
|
|
3514
3523
|
that.state.sessionType = false
|
|
@@ -3731,6 +3740,9 @@ class Video extends Component {
|
|
|
3731
3740
|
if (result.businessRecordStatus == 1){
|
|
3732
3741
|
// 业务录制
|
|
3733
3742
|
this.state.businessRecordId = result.businessRecordId;
|
|
3743
|
+
this.state.businessId = result.businessId;
|
|
3744
|
+
third_id_Map.set(result.businessRecordId, result.businessId);
|
|
3745
|
+
console.log(third_id_Map)
|
|
3734
3746
|
if (this.props.whetherDetectFace) this.startFaceDetection();
|
|
3735
3747
|
if (this.props.whetherDetectLight) this.startImageDetection();
|
|
3736
3748
|
}
|