react_hsbc_teller 2.0.28 → 2.0.30
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 +42 -9
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
|
|
|
58
58
|
import axios from 'axios';
|
|
59
59
|
import CryptoJS from "crypto-js";
|
|
60
60
|
|
|
61
|
-
const SDK_VERISON = '2.0.
|
|
61
|
+
const SDK_VERISON = '2.0.30'
|
|
62
62
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
63
63
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
64
64
|
const { Option } = Select;
|
|
@@ -687,13 +687,13 @@ class Video extends Component {
|
|
|
687
687
|
width: 213 * SCALE,
|
|
688
688
|
height: 175 * SCALE
|
|
689
689
|
},
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
690
|
+
{
|
|
691
|
+
tag: 'sharedScreen', // 一期暂时不需要录制
|
|
692
|
+
xPosition: 960 * SCALE,
|
|
693
|
+
yPosition: 180 * SCALE,
|
|
694
|
+
width: 320 * SCALE,
|
|
695
|
+
height: 180 * SCALE
|
|
696
|
+
}
|
|
697
697
|
]
|
|
698
698
|
Array.isArray(res) ?
|
|
699
699
|
res.map((item) => {
|
|
@@ -1711,6 +1711,9 @@ class Video extends Component {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
this.messageClick(TITLE+'人脸数量发生变化', 'error', Mival.data.userId)
|
|
1713
1713
|
}
|
|
1714
|
+
else if (Mival.typeId == 5006) { // 内网pib检测到敏感词
|
|
1715
|
+
this.messageClick(Mival.content, 'error', Mival.data.userId)
|
|
1716
|
+
}
|
|
1714
1717
|
else if (Mival.typeId == 1220) {
|
|
1715
1718
|
// 一炒多的图片 1214
|
|
1716
1719
|
if (Mival.sessionId == this.state.sessionId) {
|
|
@@ -2593,6 +2596,10 @@ class Video extends Component {
|
|
|
2593
2596
|
console.log('过滤订阅的tag:', itemOne.tag)
|
|
2594
2597
|
return
|
|
2595
2598
|
}
|
|
2599
|
+
if (itemOne.mediaSource == 'VIDEO_SOURCE_CAMERA' && item.uid.includes(IPAD_SUFFIX)) {
|
|
2600
|
+
this.state.ipadTag = itemOne.tag;
|
|
2601
|
+
console.log('ipadTag:', itemOne.tag)
|
|
2602
|
+
}
|
|
2596
2603
|
let array = this.state.roomCustomerList;
|
|
2597
2604
|
let newArray = [...array];
|
|
2598
2605
|
newArray.push({
|
|
@@ -2763,6 +2770,10 @@ class Video extends Component {
|
|
|
2763
2770
|
// 记录ipad摄像头流,需要单独开启录制
|
|
2764
2771
|
if (feed.mediaSource == 'VIDEO_SOURCE_CAMERA' && feed.uid.includes(IPAD_SUFFIX)) {
|
|
2765
2772
|
this.state.ipadTag = feed.tag;
|
|
2773
|
+
// 如果已经开启了业务录制且ipad未在录制,立即开启ipad录制(ipad后加入)
|
|
2774
|
+
if (this.state.businessId && !this.state.ipadRecordId) {
|
|
2775
|
+
this.enableIpadRecording(this.state.businessId)
|
|
2776
|
+
}
|
|
2766
2777
|
}
|
|
2767
2778
|
};
|
|
2768
2779
|
// 推送“有新订阅”给与会者
|
|
@@ -2901,6 +2912,10 @@ class Video extends Component {
|
|
|
2901
2912
|
}
|
|
2902
2913
|
setTimeout(this.ipadLeavePlay, 0);
|
|
2903
2914
|
return
|
|
2915
|
+
} else if (participant.includes(IPAD_SUFFIX)) {
|
|
2916
|
+
this.setState({
|
|
2917
|
+
ipadTag: '',
|
|
2918
|
+
})
|
|
2904
2919
|
}
|
|
2905
2920
|
|
|
2906
2921
|
|
|
@@ -4030,6 +4045,7 @@ class Video extends Component {
|
|
|
4030
4045
|
// 业务录制
|
|
4031
4046
|
this.state.businessRecordId = result.businessRecordId;
|
|
4032
4047
|
this.state.businessId = result.businessId;
|
|
4048
|
+
this.state.ipadRecordId = result.businessIpadRecordId;
|
|
4033
4049
|
third_id_Map.set(result.businessRecordId, result.businessId);
|
|
4034
4050
|
console.log(third_id_Map)
|
|
4035
4051
|
if (this.props.whetherDetectFace && this.props.recordMode != 2) this.startFaceDetection();
|
|
@@ -6329,7 +6345,8 @@ class Video extends Component {
|
|
|
6329
6345
|
this.state.envInfo.batteryResult=='合格' &&
|
|
6330
6346
|
(this.state.envInfo.cameraResult=='合格' || this.props.recordMode == 2) &&
|
|
6331
6347
|
this.state.envInfo.microResult=='合格' &&
|
|
6332
|
-
(this.state.envInfo.lightResult=='合格' || this.props.recordMode == 2 )
|
|
6348
|
+
(this.state.envInfo.lightResult=='合格' || this.props.recordMode == 2 ) &&
|
|
6349
|
+
(this.state.ipadTag || this.props.recordMode != 2)
|
|
6333
6350
|
|
|
6334
6351
|
const sectionStyle = this.state.tabTitles.length > 0 ? {
|
|
6335
6352
|
zIndex: '-1',
|
|
@@ -7088,6 +7105,22 @@ class Video extends Component {
|
|
|
7088
7105
|
{this.state.cameraList.length == 0 ? <p className="envClass">获取不到设备,请检查电脑“设置”中的麦克风权限是否开启,并重启浏览器再试</p> : null}
|
|
7089
7106
|
</div>
|
|
7090
7107
|
</Panel>
|
|
7108
|
+
{
|
|
7109
|
+
this.props.recordMode == 2 &&
|
|
7110
|
+
<Panel header={<span>iPad设备 - {this.state.ipadTag? '合格':'不合格'} {this.state.ipadTag? <img src={IconSuccess} />: <img src={IconFail} />}</span>} key="6" className={this.state.ipadTag? '':'panel-error'}>
|
|
7111
|
+
<p className="envClass">{this.state.ipadTag? 'iPad设备已加入':'未检测到iPad设备,请扫码加入会议'}</p>
|
|
7112
|
+
<QRCode
|
|
7113
|
+
value={JSON.stringify({
|
|
7114
|
+
sessionId: this.state.sessionId,
|
|
7115
|
+
staffId: this.props.tellerAccount,
|
|
7116
|
+
staffName: this.props.staffName
|
|
7117
|
+
})}
|
|
7118
|
+
style={{marginTop: '8px', marginLeft: '20px', display: this.state.ipadTag? 'none':'block'}}
|
|
7119
|
+
size={100}
|
|
7120
|
+
fgColor="#000000"
|
|
7121
|
+
/>
|
|
7122
|
+
</Panel>
|
|
7123
|
+
}
|
|
7091
7124
|
{
|
|
7092
7125
|
this.props.recordMode != 2 &&
|
|
7093
7126
|
<Panel header={<span>背光、曝光 - {this.state.envInfo.lightResult} {this.state.envInfo.lightResult=='合格'? <img src={IconSuccess} />: <img src={IconFail} />}</span>} key="6" className={this.state.envInfo.lightResult=='合格'? '':'panel-error'}>
|