react_hsbc_teller 1.6.2 → 1.6.3
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 +80 -41
package/package.json
CHANGED
|
@@ -587,6 +587,28 @@ class Video extends Component {
|
|
|
587
587
|
})
|
|
588
588
|
}
|
|
589
589
|
};
|
|
590
|
+
// contrastFaceVerify=()=>{
|
|
591
|
+
// axios({
|
|
592
|
+
// method: 'post',
|
|
593
|
+
// url: 'http://182.92.184.31:8868/verify/face',
|
|
594
|
+
// data: { // 这⾥data中的参数为requestBody参数,服务端需要使⽤@RequestBody注解进⾏获取
|
|
595
|
+
// "username":"王明珍",
|
|
596
|
+
// "num":"410425199510201037",
|
|
597
|
+
// "fileBase64":this.state.facialImg.replace(/^data:image\/\w+;base64,/,"")
|
|
598
|
+
// }
|
|
599
|
+
// }).then((response) =>{
|
|
600
|
+
// console.log(response.data);
|
|
601
|
+
// if(response.data.code == 200){
|
|
602
|
+
// this.messageClick('人脸识别成功','success')
|
|
603
|
+
// this.setState({
|
|
604
|
+
// isModalVisibleFacial: false
|
|
605
|
+
// })
|
|
606
|
+
// } else {
|
|
607
|
+
// this.messageClick('人脸识别失败','error')
|
|
608
|
+
// }
|
|
609
|
+
// }).catch(function (error) {
|
|
610
|
+
// })
|
|
611
|
+
// }
|
|
590
612
|
contrastFaceVerify = async () => {
|
|
591
613
|
try {
|
|
592
614
|
let result = await API.contrastFaceVerify({
|
|
@@ -653,10 +675,10 @@ class Video extends Component {
|
|
|
653
675
|
list.push({
|
|
654
676
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
|
|
655
677
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
|
|
656
|
-
name: this.state.videoOneName + '--OCR',
|
|
678
|
+
name: this.state.videoOneName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
657
679
|
tourist: false
|
|
658
680
|
})
|
|
659
|
-
if(this.state.videoOneName.indexOf("客户") == -1) {
|
|
681
|
+
if(this.state.videoOneName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
660
682
|
list.push({
|
|
661
683
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
|
|
662
684
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
|
|
@@ -671,10 +693,10 @@ class Video extends Component {
|
|
|
671
693
|
list.push({
|
|
672
694
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
|
|
673
695
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
|
|
674
|
-
name: this.state.videoTwoName + '--OCR',
|
|
696
|
+
name: this.state.videoTwoName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
675
697
|
tourist: false
|
|
676
698
|
})
|
|
677
|
-
if(this.state.videoTwoName.indexOf("客户") == -1) {
|
|
699
|
+
if(this.state.videoTwoName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
678
700
|
list.push({
|
|
679
701
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
|
|
680
702
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
|
|
@@ -689,10 +711,10 @@ class Video extends Component {
|
|
|
689
711
|
list.push({
|
|
690
712
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
|
|
691
713
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
|
|
692
|
-
name: this.state.videoThreeName + '--OCR',
|
|
714
|
+
name: this.state.videoThreeName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
693
715
|
tourist: false
|
|
694
716
|
})
|
|
695
|
-
if(this.state.videoThreeName.indexOf("客户") == -1) {
|
|
717
|
+
if(this.state.videoThreeName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
696
718
|
list.push({
|
|
697
719
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
|
|
698
720
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
|
|
@@ -707,10 +729,10 @@ class Video extends Component {
|
|
|
707
729
|
list.push({
|
|
708
730
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
|
|
709
731
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
|
|
710
|
-
name: this.state.videoFourName + '--OCR',
|
|
732
|
+
name: this.state.videoFourName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
711
733
|
tourist: false
|
|
712
734
|
})
|
|
713
|
-
if(this.state.videoFourName.indexOf("客户") == -1) {
|
|
735
|
+
if(this.state.videoFourName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
714
736
|
list.push({
|
|
715
737
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
|
|
716
738
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
|
|
@@ -725,10 +747,10 @@ class Video extends Component {
|
|
|
725
747
|
list.push({
|
|
726
748
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
|
|
727
749
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
|
|
728
|
-
name: this.state.videoFiveName + '--OCR',
|
|
750
|
+
name: this.state.videoFiveName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
729
751
|
tourist: false
|
|
730
752
|
})
|
|
731
|
-
if(this.state.videoFiveName.indexOf("客户") == -1) {
|
|
753
|
+
if(this.state.videoFiveName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
732
754
|
list.push({
|
|
733
755
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
|
|
734
756
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
|
|
@@ -742,10 +764,10 @@ class Video extends Component {
|
|
|
742
764
|
list.push({
|
|
743
765
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
|
|
744
766
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
|
|
745
|
-
name: this.state.videoSixName + '--OCR',
|
|
767
|
+
name: this.state.videoSixName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
746
768
|
tourist: false
|
|
747
769
|
})
|
|
748
|
-
if(this.state.videoSixName.indexOf("客户") == -1) {
|
|
770
|
+
if(this.state.videoSixName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
749
771
|
list.push({
|
|
750
772
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
|
|
751
773
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
|
|
@@ -758,10 +780,10 @@ class Video extends Component {
|
|
|
758
780
|
list.push({
|
|
759
781
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
|
|
760
782
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
|
|
761
|
-
name: this.state.videoSevenName + '--OCR',
|
|
783
|
+
name: this.state.videoSevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
762
784
|
tourist: false
|
|
763
785
|
})
|
|
764
|
-
if(this.state.videoSevenName.indexOf("客户") == -1) {
|
|
786
|
+
if(this.state.videoSevenName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
765
787
|
list.push({
|
|
766
788
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
|
|
767
789
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
|
|
@@ -774,10 +796,10 @@ class Video extends Component {
|
|
|
774
796
|
list.push({
|
|
775
797
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
|
|
776
798
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
|
|
777
|
-
name: this.state.videoEightName + '--OCR',
|
|
799
|
+
name: this.state.videoEightName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
778
800
|
tourist: false
|
|
779
801
|
})
|
|
780
|
-
if(this.state.videoEightName.indexOf("客户") == -1) {
|
|
802
|
+
if(this.state.videoEightName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
781
803
|
list.push({
|
|
782
804
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
|
|
783
805
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
|
|
@@ -790,10 +812,10 @@ class Video extends Component {
|
|
|
790
812
|
list.push({
|
|
791
813
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
|
|
792
814
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
|
|
793
|
-
name: this.state.videoNineName + '--OCR',
|
|
815
|
+
name: this.state.videoNineName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
794
816
|
tourist: false
|
|
795
817
|
})
|
|
796
|
-
if(this.state.videoNineName.indexOf("客户") == -1) {
|
|
818
|
+
if(this.state.videoNineName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
797
819
|
list.push({
|
|
798
820
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
|
|
799
821
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
|
|
@@ -806,10 +828,10 @@ class Video extends Component {
|
|
|
806
828
|
list.push({
|
|
807
829
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
|
|
808
830
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
|
|
809
|
-
name: this.state.videoTenName + '--OCR',
|
|
831
|
+
name: this.state.videoTenName +(this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
810
832
|
tourist: false
|
|
811
833
|
})
|
|
812
|
-
if(this.state.videoTenName.indexOf("客户") == -1) {
|
|
834
|
+
if(this.state.videoTenName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
813
835
|
list.push({
|
|
814
836
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
|
|
815
837
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
|
|
@@ -822,10 +844,10 @@ class Video extends Component {
|
|
|
822
844
|
list.push({
|
|
823
845
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
|
|
824
846
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
|
|
825
|
-
name: this.state.videoElevenName + '--OCR',
|
|
847
|
+
name: this.state.videoElevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
826
848
|
tourist: false
|
|
827
849
|
})
|
|
828
|
-
if(this.state.videoElevenName.indexOf("客户") == -1) {
|
|
850
|
+
if(this.state.videoElevenName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
829
851
|
list.push({
|
|
830
852
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
|
|
831
853
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
|
|
@@ -838,10 +860,10 @@ class Video extends Component {
|
|
|
838
860
|
list.push({
|
|
839
861
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
|
|
840
862
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
|
|
841
|
-
name: this.state.videoTwelveName + '--OCR',
|
|
863
|
+
name: this.state.videoTwelveName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
842
864
|
tourist: false
|
|
843
865
|
})
|
|
844
|
-
if(this.state.videoTwelveName.indexOf("客户") == -1) {
|
|
866
|
+
if(this.state.videoTwelveName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
845
867
|
list.push({
|
|
846
868
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
|
|
847
869
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
|
|
@@ -2070,6 +2092,7 @@ class Video extends Component {
|
|
|
2070
2092
|
|
|
2071
2093
|
loading: false,
|
|
2072
2094
|
});
|
|
2095
|
+
|
|
2073
2096
|
this.enterRoom()
|
|
2074
2097
|
this.updateMeetingInfo()
|
|
2075
2098
|
this.timer = setInterval(
|
|
@@ -2489,6 +2512,21 @@ class Video extends Component {
|
|
|
2489
2512
|
}, function (code, message, data) {
|
|
2490
2513
|
console.log(data)
|
|
2491
2514
|
})
|
|
2515
|
+
callNimIM('sendCustomCmdMsg', {
|
|
2516
|
+
customId: this.state.imRoomId,
|
|
2517
|
+
content: JSON.stringify({
|
|
2518
|
+
'typeId': 1014,
|
|
2519
|
+
'sessionId': this.state.sessionId,
|
|
2520
|
+
'meetingInfo': {
|
|
2521
|
+
'title': this.props.meetingInfo.title,
|
|
2522
|
+
'host': this.props.meetingInfo.host,
|
|
2523
|
+
'customers': this.props.meetingInfo.customers,
|
|
2524
|
+
'otherAttendees': this.props.meetingInfo.otherAttendees
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
})
|
|
2528
|
+
}, function (code, message, data) {
|
|
2529
|
+
})
|
|
2492
2530
|
this.sendNotification()
|
|
2493
2531
|
let array = this.state.roomCustomerList;
|
|
2494
2532
|
let newArray = [...array];
|
|
@@ -3227,21 +3265,6 @@ userType:'1'
|
|
|
3227
3265
|
}
|
|
3228
3266
|
}
|
|
3229
3267
|
// 保存mettingInfo
|
|
3230
|
-
// callNimIM('sendCustomCmdMsg', {
|
|
3231
|
-
// customId: this.state.imRoomId,
|
|
3232
|
-
// content: JSON.stringify({
|
|
3233
|
-
// 'typeId': 1014,
|
|
3234
|
-
// 'sessionId': this.state.sessionId,
|
|
3235
|
-
// 'meetingInfo': {
|
|
3236
|
-
// 'title': this.props.meetingInfo.title,
|
|
3237
|
-
// 'host': this.props.meetingInfo.host,
|
|
3238
|
-
// 'customers': this.props.meetingInfo.customers,
|
|
3239
|
-
// 'otherAttendees': this.props.meetingInfo.otherAttendees
|
|
3240
|
-
// }
|
|
3241
|
-
|
|
3242
|
-
// })
|
|
3243
|
-
// }, function (code, message, data) {
|
|
3244
|
-
// })
|
|
3245
3268
|
updateMeetingInfo= async()=>{
|
|
3246
3269
|
let customers
|
|
3247
3270
|
this.props.meetingInfo.customers.map((item, index) => {
|
|
@@ -3272,6 +3295,21 @@ userType:'1'
|
|
|
3272
3295
|
});
|
|
3273
3296
|
console.log(result);
|
|
3274
3297
|
this.appGetUsername(document.getElementById('publish_video1').name)
|
|
3298
|
+
callNimIM('sendCustomCmdMsg', {
|
|
3299
|
+
customId: this.state.imRoomId,
|
|
3300
|
+
content: JSON.stringify({
|
|
3301
|
+
'typeId': 1014,
|
|
3302
|
+
'sessionId': this.state.sessionId,
|
|
3303
|
+
'meetingInfo': {
|
|
3304
|
+
'title': this.props.meetingInfo.title,
|
|
3305
|
+
'host': this.props.meetingInfo.host,
|
|
3306
|
+
'customers': this.props.meetingInfo.customers,
|
|
3307
|
+
'otherAttendees': this.props.meetingInfo.otherAttendees
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
})
|
|
3311
|
+
}, function (code, message, data) {
|
|
3312
|
+
})
|
|
3275
3313
|
} catch (err) {
|
|
3276
3314
|
console.error(err);
|
|
3277
3315
|
if(err.status == 502 || err.status== 404) {
|
|
@@ -3789,7 +3827,8 @@ userType:'1'
|
|
|
3789
3827
|
type: 1
|
|
3790
3828
|
});
|
|
3791
3829
|
if (result.code == 200) {
|
|
3792
|
-
this.messageClick('
|
|
3830
|
+
this.messageClick('姓名:' + result.data.idCardName + ',身份证号:' + result.data.idCardNumber,'success')
|
|
3831
|
+
// this.messageClick('识别成功','success')
|
|
3793
3832
|
callNimIM('sendCustomCmdMsg', {
|
|
3794
3833
|
customId: this.state.imRoomId,
|
|
3795
3834
|
content: JSON.stringify({
|
|
@@ -4409,7 +4448,7 @@ userType:'1'
|
|
|
4409
4448
|
publish_config.video_profile_type=100
|
|
4410
4449
|
publish_config.video_profile_diy={width:640, height:360, frameRate:15, bitrate:400}
|
|
4411
4450
|
this.test_controller.ChangeMediaStream(publish_config)
|
|
4412
|
-
beautyNum = beautyNum == 0 ?
|
|
4451
|
+
beautyNum = beautyNum == 0 ? 1 : 0
|
|
4413
4452
|
this.setState({
|
|
4414
4453
|
beautyName: beautyNum == 0 ? '开启美颜' : '关闭美颜'
|
|
4415
4454
|
})
|