react_hsbc_teller 2.0.34 → 2.0.35
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
|
Binary file
|
|
Binary file
|
package/packages/demo/demo.js
CHANGED
|
@@ -20,7 +20,9 @@ import cameraImgCloe from '../../assets/img/icon_cameraOne.png'
|
|
|
20
20
|
import beautyImg from '../../assets/img/whiteningLut.jpg'
|
|
21
21
|
import ocrImage from '../../assets/img/jietu.png'
|
|
22
22
|
import faceImage from '../../assets/img/jietu_face.png'
|
|
23
|
-
import
|
|
23
|
+
import joinMeeting from '../../assets/mp3/joinmeeting.mp3'
|
|
24
|
+
import ipadjoinMeeting from '../../assets/mp3/ipad_join_meeting.mp3'
|
|
25
|
+
import ipadLeaveMeeting from '../../assets/mp3/ipad_leave_meeting.mp3'
|
|
24
26
|
import recordErrorAudio from '../../assets/mp3/record_error.mp3'
|
|
25
27
|
import IpadLeaveAudio from '../../assets/mp3/ipad_leave_error.mp3';
|
|
26
28
|
import IpadLowPowerAudio from '../../assets/mp3/ipad_low_power.mp3';
|
|
@@ -58,7 +60,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
|
|
|
58
60
|
import axios from 'axios';
|
|
59
61
|
import CryptoJS from "crypto-js";
|
|
60
62
|
|
|
61
|
-
const SDK_VERISON = '2.0.
|
|
63
|
+
const SDK_VERISON = '2.0.35'
|
|
62
64
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
63
65
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
64
66
|
const { Option } = Select;
|
|
@@ -2911,9 +2913,7 @@ class Video extends Component {
|
|
|
2911
2913
|
}
|
|
2912
2914
|
|
|
2913
2915
|
if (participant.includes(IPAD_SUFFIX) && this.state.businessId){
|
|
2914
|
-
// ipad
|
|
2915
|
-
console.log('iPad退出房间', participant)
|
|
2916
|
-
|
|
2916
|
+
// ipad单独处理,双录过程中ipad如果离开,要提示+循环播报直到ipad重新入会
|
|
2917
2917
|
this.setState({
|
|
2918
2918
|
IpadLeaveErrorModalVisible: true,
|
|
2919
2919
|
ipadTag: '',
|
|
@@ -2930,11 +2930,16 @@ class Video extends Component {
|
|
|
2930
2930
|
setTimeout(this.ipadLeavePlay, 0);
|
|
2931
2931
|
return
|
|
2932
2932
|
} else if (participant.includes(IPAD_SUFFIX)) {
|
|
2933
|
+
// 非双录下ipad离开提示iPad已断开
|
|
2933
2934
|
this.setState({
|
|
2934
2935
|
ipadTag: '',
|
|
2935
2936
|
})
|
|
2936
2937
|
this.messageClick(('iPad 已断开'), 'error')
|
|
2937
2938
|
this.saveLog('iPad leave room')
|
|
2939
|
+
if (this.props.isOpenSound && !this.state.businessId) {
|
|
2940
|
+
let audio = new Audio(ipadLeaveMeeting)
|
|
2941
|
+
audio.play()
|
|
2942
|
+
}
|
|
2938
2943
|
return
|
|
2939
2944
|
}
|
|
2940
2945
|
|
|
@@ -5181,8 +5186,14 @@ class Video extends Component {
|
|
|
5181
5186
|
this.messageClick('查询失败', 'error')
|
|
5182
5187
|
}
|
|
5183
5188
|
if (this.props.isOpenSound && sid != document.getElementById('publish_streamId1').name) {
|
|
5184
|
-
if (
|
|
5185
|
-
|
|
5189
|
+
if (userId.includes(IPAD_SUFFIX)) {
|
|
5190
|
+
if (!this.state.businessId) {
|
|
5191
|
+
let src = ipadjoinMeeting
|
|
5192
|
+
let audio = new Audio(src)
|
|
5193
|
+
audio.play()
|
|
5194
|
+
}
|
|
5195
|
+
} else if (result.data.userType == 1) {
|
|
5196
|
+
let src = joinMeeting
|
|
5186
5197
|
let audio = new Audio(src)
|
|
5187
5198
|
audio.play()
|
|
5188
5199
|
} else if (result.data.userType == 2) {
|