react_hsbc_teller 1.6.2 → 1.6.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "1.6.2",
3
+ "version": "1.6.5",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -2,6 +2,25 @@ import Server from './server';
2
2
 
3
3
  class API extends Server{
4
4
 
5
+ async confirmCallback(params = {}){
6
+ // return this.axios('get', '/lang/select/2', params);
7
+ try{
8
+ let result = await this.axios('post', '/hsbc/identify/ocr/confirmCallback', params);
9
+ if(result && (result.data instanceof Object) && result.code === 200){
10
+ return result||[];
11
+ }else{
12
+ let err = {
13
+ tip: '服务异常',
14
+ response: result,
15
+ data: params,
16
+ // url: 'https://api.cangdu.org/shopro/data/products',
17
+ }
18
+ throw err;
19
+ }
20
+ }catch(err){
21
+ throw err;
22
+ }
23
+ }
5
24
  async updateMeetingInfo(params = {}){
6
25
  // return this.axios('get', '/lang/select/2', params);
7
26
  try{
@@ -222,24 +241,6 @@ class API extends Server{
222
241
  throw err;
223
242
  }
224
243
  }
225
- async finishSession(params = {}){
226
- try{
227
- let result = await this.axios('post', '/teller/finish/session', params);
228
- if(result){
229
- return result||[];
230
- }else{
231
- let err = {
232
- tip: '',
233
- response: result,
234
- data: params,
235
- // url: 'https://api.cangdu.org/shopro/data/products',
236
- }
237
- throw err;
238
- }
239
- }catch(err){
240
- throw err;
241
- }
242
- }
243
244
  /**
244
245
  * 用途:发送客户姓名给行内
245
246
  * 返回200表示成功
@@ -5,13 +5,10 @@ import Pdf from './pdf.js'
5
5
  class Demo extends Component {
6
6
  state = {
7
7
  shareMask: false,
8
- mtoken: "84d0410ab406",
9
-
10
- roomId: "651114052525526",
11
-
12
- imRoomId: "VPP0Ejwae@conference.openfire2.leimondata.cn",
13
-
14
- sessionId: "VPP0Ejwae",
8
+ imRoomId: "oSqhUSooi@conference.ls-im-xmpp.chinawp.dev.ali.cloud.cn.hsbc",
9
+ sessionId: "oSqhUSooi",
10
+ mtoken: "8af047a2b64b",
11
+ roomId: "654754010601621",
15
12
  // roomId: '',
16
13
  // mtoken: '',
17
14
  // imRoomId: '',
@@ -148,18 +148,18 @@ export default class foot extends Component {
148
148
  </div>
149
149
  </div>
150
150
  }
151
+ {/* {
152
+ item == 'BEAUTY' && <div className="one" onClick={this.beautyClick.bind(this)}>
153
+ <img className="imgClass" src={require("../../assets/img/meiyan.png").default} alt="" />
154
+ <div className="text">
155
+ {beautyName}
156
+ </div>
157
+ </div>
158
+ } */}
151
159
  </div>
152
160
 
153
161
  })
154
162
  }
155
- {
156
- <div className="one" onClick={this.beautyClick.bind(this)}>
157
- <img className="imgClass" src={require("../../assets/img/meiyan.png").default} alt="" />
158
- <div className="text">
159
- {beautyName}
160
- </div>
161
- </div>
162
- }
163
163
  </div>
164
164
  );
165
165
  return (
@@ -212,6 +212,8 @@ class Video extends Component {
212
212
  }
213
213
  ],
214
214
  shareMaskState: false,
215
+ idCardName: '',
216
+ idCardNumber: ''
215
217
  };
216
218
  // eslint-disable-next-line no-undef
217
219
  test_controller = '';
@@ -587,6 +589,28 @@ class Video extends Component {
587
589
  })
588
590
  }
589
591
  };
592
+ // contrastFaceVerify=()=>{
593
+ // axios({
594
+ // method: 'post',
595
+ // url: 'http://182.92.184.31:8868/verify/face',
596
+ // data: { // 这⾥data中的参数为requestBody参数,服务端需要使⽤@RequestBody注解进⾏获取
597
+ // "username":"王明珍",
598
+ // "num":"410425199510201037",
599
+ // "fileBase64":this.state.facialImg.replace(/^data:image\/\w+;base64,/,"")
600
+ // }
601
+ // }).then((response) =>{
602
+ // console.log(response.data);
603
+ // if(response.data.code == 200){
604
+ // this.messageClick('人脸识别成功','success')
605
+ // this.setState({
606
+ // isModalVisibleFacial: false
607
+ // })
608
+ // } else {
609
+ // this.messageClick('人脸识别失败','error')
610
+ // }
611
+ // }).catch(function (error) {
612
+ // })
613
+ // }
590
614
  contrastFaceVerify = async () => {
591
615
  try {
592
616
  let result = await API.contrastFaceVerify({
@@ -653,10 +677,10 @@ class Video extends Component {
653
677
  list.push({
654
678
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
655
679
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
656
- name: this.state.videoOneName + '--OCR',
680
+ name: this.state.videoOneName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
657
681
  tourist: false
658
682
  })
659
- if(this.state.videoOneName.indexOf("客户") == -1) {
683
+ if(this.state.videoOneName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
660
684
  list.push({
661
685
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
662
686
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
@@ -671,10 +695,10 @@ class Video extends Component {
671
695
  list.push({
672
696
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
673
697
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
674
- name: this.state.videoTwoName + '--OCR',
698
+ name: this.state.videoTwoName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
675
699
  tourist: false
676
700
  })
677
- if(this.state.videoTwoName.indexOf("客户") == -1) {
701
+ if(this.state.videoTwoName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
678
702
  list.push({
679
703
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
680
704
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
@@ -689,10 +713,10 @@ class Video extends Component {
689
713
  list.push({
690
714
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
691
715
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
692
- name: this.state.videoThreeName + '--OCR',
716
+ name: this.state.videoThreeName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
693
717
  tourist: false
694
718
  })
695
- if(this.state.videoThreeName.indexOf("客户") == -1) {
719
+ if(this.state.videoThreeName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
696
720
  list.push({
697
721
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
698
722
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
@@ -707,10 +731,10 @@ class Video extends Component {
707
731
  list.push({
708
732
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
709
733
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
710
- name: this.state.videoFourName + '--OCR',
734
+ name: this.state.videoFourName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
711
735
  tourist: false
712
736
  })
713
- if(this.state.videoFourName.indexOf("客户") == -1) {
737
+ if(this.state.videoFourName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
714
738
  list.push({
715
739
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
716
740
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
@@ -725,10 +749,10 @@ class Video extends Component {
725
749
  list.push({
726
750
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
727
751
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
728
- name: this.state.videoFiveName + '--OCR',
752
+ name: this.state.videoFiveName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
729
753
  tourist: false
730
754
  })
731
- if(this.state.videoFiveName.indexOf("客户") == -1) {
755
+ if(this.state.videoFiveName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
732
756
  list.push({
733
757
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
734
758
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
@@ -742,10 +766,10 @@ class Video extends Component {
742
766
  list.push({
743
767
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
744
768
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
745
- name: this.state.videoSixName + '--OCR',
769
+ name: this.state.videoSixName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
746
770
  tourist: false
747
771
  })
748
- if(this.state.videoSixName.indexOf("客户") == -1) {
772
+ if(this.state.videoSixName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
749
773
  list.push({
750
774
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
751
775
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
@@ -758,10 +782,10 @@ class Video extends Component {
758
782
  list.push({
759
783
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
760
784
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
761
- name: this.state.videoSevenName + '--OCR',
785
+ name: this.state.videoSevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
762
786
  tourist: false
763
787
  })
764
- if(this.state.videoSevenName.indexOf("客户") == -1) {
788
+ if(this.state.videoSevenName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
765
789
  list.push({
766
790
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
767
791
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
@@ -774,10 +798,10 @@ class Video extends Component {
774
798
  list.push({
775
799
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
776
800
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
777
- name: this.state.videoEightName + '--OCR',
801
+ name: this.state.videoEightName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
778
802
  tourist: false
779
803
  })
780
- if(this.state.videoEightName.indexOf("客户") == -1) {
804
+ if(this.state.videoEightName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
781
805
  list.push({
782
806
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
783
807
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
@@ -790,10 +814,10 @@ class Video extends Component {
790
814
  list.push({
791
815
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
792
816
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
793
- name: this.state.videoNineName + '--OCR',
817
+ name: this.state.videoNineName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
794
818
  tourist: false
795
819
  })
796
- if(this.state.videoNineName.indexOf("客户") == -1) {
820
+ if(this.state.videoNineName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
797
821
  list.push({
798
822
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
799
823
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
@@ -806,10 +830,10 @@ class Video extends Component {
806
830
  list.push({
807
831
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
808
832
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
809
- name: this.state.videoTenName + '--OCR',
833
+ name: this.state.videoTenName +(this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
810
834
  tourist: false
811
835
  })
812
- if(this.state.videoTenName.indexOf("客户") == -1) {
836
+ if(this.state.videoTenName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
813
837
  list.push({
814
838
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
815
839
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
@@ -822,10 +846,10 @@ class Video extends Component {
822
846
  list.push({
823
847
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
824
848
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
825
- name: this.state.videoElevenName + '--OCR',
849
+ name: this.state.videoElevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
826
850
  tourist: false
827
851
  })
828
- if(this.state.videoElevenName.indexOf("客户") == -1) {
852
+ if(this.state.videoElevenName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
829
853
  list.push({
830
854
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
831
855
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
@@ -838,10 +862,10 @@ class Video extends Component {
838
862
  list.push({
839
863
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
840
864
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
841
- name: this.state.videoTwelveName + '--OCR',
865
+ name: this.state.videoTwelveName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
842
866
  tourist: false
843
867
  })
844
- if(this.state.videoTwelveName.indexOf("客户") == -1) {
868
+ if(this.state.videoTwelveName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
845
869
  list.push({
846
870
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
847
871
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
@@ -2007,45 +2031,42 @@ class Video extends Component {
2007
2031
  this.test_controller.OnSendTextMsgFailed =(msgId, code, msg)=>{
2008
2032
  console.log('发送失败',msgId,code, msg)
2009
2033
  }
2010
- this.test_controller.StreamFilterHandler = async function (publish_tag, stream, stream_type, publish_device, media_type) {
2011
- console.log(`stream processed by client, publish_device=${publish_device}, media_type=${media_type}, publish_tag=${publish_tag},stream_type=${stream_type}`);
2012
- if (stream_type == "subscribe") {
2013
- return stream
2014
- }
2015
- if (media_type == 2 || media_type == 4) {
2016
- return stream
2017
- }
2018
- // if (publish_device != 1) {
2019
- // return stream
2020
- // }
2021
- if(publish_tag == 'tag1') {
2022
- let newStream = stream;
2023
- let beauty_strength = beautyNum;
2024
- if (beauty_strength != 0 && stream.getVideoTracks()[0]) {
2025
- newStream = new MediaStream([startBeauty(stream).getVideoTracks()[0]]);
2026
- // 清理原始流
2027
- newStream.oninactive = function () {
2028
- clearOriginStream(stream);
2029
- };
2030
- newStream.getVideoTracks()[0].onended = function () {
2031
- clearOriginStream(stream);
2032
- };
2033
- function clearOriginStream(stream) {
2034
- stream.getTracks().forEach((track) => {
2035
- track.stop();
2036
- });
2037
- stream = null;
2038
- }
2039
- };
2040
- if (stream.getAudioTracks()[0] && newStream.addTrack) {
2041
- newStream.addTrack(stream.getAudioTracks()[0])
2042
- }
2043
- return newStream
2044
- } else {
2045
- return stream
2046
- }
2034
+ // this.test_controller.StreamFilterHandler = async function (publish_tag, stream, stream_type, publish_device, media_type) {
2035
+ // console.log(`stream processed by client, publish_device=${publish_device}, media_type=${media_type}, publish_tag=${publish_tag},stream_type=${stream_type}`);
2036
+ // if (stream_type == "subscribe") {
2037
+ // return stream
2038
+ // }
2039
+ // if (media_type == 2 || media_type == 4) {
2040
+ // return stream
2041
+ // }
2042
+ // if(publish_tag == 'tag1') {
2043
+ // let newStream = stream;
2044
+ // let beauty_strength = beautyNum;
2045
+ // if (beauty_strength != 0 && stream.getVideoTracks()[0]) {
2046
+ // newStream = new MediaStream([startBeauty(stream).getVideoTracks()[0]]);
2047
+ // // 清理原始流
2048
+ // newStream.oninactive = function () {
2049
+ // clearOriginStream(stream);
2050
+ // };
2051
+ // newStream.getVideoTracks()[0].onended = function () {
2052
+ // clearOriginStream(stream);
2053
+ // };
2054
+ // function clearOriginStream(stream) {
2055
+ // stream.getTracks().forEach((track) => {
2056
+ // track.stop();
2057
+ // });
2058
+ // stream = null;
2059
+ // }
2060
+ // };
2061
+ // if (stream.getAudioTracks()[0] && newStream.addTrack) {
2062
+ // newStream.addTrack(stream.getAudioTracks()[0])
2063
+ // }
2064
+ // return newStream
2065
+ // } else {
2066
+ // return stream
2067
+ // }
2047
2068
 
2048
- }
2069
+ // }
2049
2070
  // 发布媒体流成功
2050
2071
  this.test_controller.OnPublishSucc = (sid) => {
2051
2072
  console.log('发布媒体流成功', sid)
@@ -2070,6 +2091,7 @@ class Video extends Component {
2070
2091
 
2071
2092
  loading: false,
2072
2093
  });
2094
+
2073
2095
  this.enterRoom()
2074
2096
  this.updateMeetingInfo()
2075
2097
  this.timer = setInterval(
@@ -2468,9 +2490,9 @@ class Video extends Component {
2468
2490
  this.test_controller.OnNewJoinerIn = (participant) => {
2469
2491
  console.log('新加⼊房间者', participant);
2470
2492
  this.state.isCustomer= true
2471
- let src = autod
2472
- let audio = new Audio(src)
2473
- audio.play()
2493
+ // let src = autod
2494
+ // let audio = new Audio(src)
2495
+ // audio.play()
2474
2496
  };
2475
2497
  // 推送“有新发布”给与会者
2476
2498
  this.test_controller.OnNewPublish = (feed) => {
@@ -2489,6 +2511,21 @@ class Video extends Component {
2489
2511
  }, function (code, message, data) {
2490
2512
  console.log(data)
2491
2513
  })
2514
+ callNimIM('sendCustomCmdMsg', {
2515
+ customId: this.state.imRoomId,
2516
+ content: JSON.stringify({
2517
+ 'typeId': 1014,
2518
+ 'sessionId': this.state.sessionId,
2519
+ 'meetingInfo': {
2520
+ 'title': this.props.meetingInfo.title,
2521
+ 'host': this.props.meetingInfo.host,
2522
+ 'customers': this.props.meetingInfo.customers,
2523
+ 'otherAttendees': this.props.meetingInfo.otherAttendees
2524
+ }
2525
+
2526
+ })
2527
+ }, function (code, message, data) {
2528
+ })
2492
2529
  this.sendNotification()
2493
2530
  let array = this.state.roomCustomerList;
2494
2531
  let newArray = [...array];
@@ -2840,9 +2877,9 @@ class Video extends Component {
2840
2877
  exitType
2841
2878
  ) => {
2842
2879
  console.log('退出房间者', participant, exitType)
2843
- let src = leftMetting
2844
- let audio = new Audio(src)
2845
- audio.play()
2880
+ // let src = leftMetting
2881
+ // let audio = new Audio(src)
2882
+ // audio.play()
2846
2883
  this.appGetUsernameClick(participant).then((res)=>{
2847
2884
  console.log('退出房间者',res)
2848
2885
  let data = res? res.username ? res.username : '客户' : '客户'
@@ -3227,21 +3264,6 @@ userType:'1'
3227
3264
  }
3228
3265
  }
3229
3266
  // 保存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
3267
  updateMeetingInfo= async()=>{
3246
3268
  let customers
3247
3269
  this.props.meetingInfo.customers.map((item, index) => {
@@ -3272,6 +3294,21 @@ userType:'1'
3272
3294
  });
3273
3295
  console.log(result);
3274
3296
  this.appGetUsername(document.getElementById('publish_video1').name)
3297
+ callNimIM('sendCustomCmdMsg', {
3298
+ customId: this.state.imRoomId,
3299
+ content: JSON.stringify({
3300
+ 'typeId': 1014,
3301
+ 'sessionId': this.state.sessionId,
3302
+ 'meetingInfo': {
3303
+ 'title': this.props.meetingInfo.title,
3304
+ 'host': this.props.meetingInfo.host,
3305
+ 'customers': this.props.meetingInfo.customers,
3306
+ 'otherAttendees': this.props.meetingInfo.otherAttendees
3307
+ }
3308
+
3309
+ })
3310
+ }, function (code, message, data) {
3311
+ })
3275
3312
  } catch (err) {
3276
3313
  console.error(err);
3277
3314
  if(err.status == 502 || err.status== 404) {
@@ -3280,10 +3317,6 @@ userType:'1'
3280
3317
  }
3281
3318
  }
3282
3319
  componentWillUnmount() {
3283
-
3284
- if (this.state.roomCustomerList.length == 0 && this.state.sessionType) {
3285
- this.finishSessionClick()
3286
- }
3287
3320
  if (this.test_controller&&this.state.sessionType) {
3288
3321
  clearStreamRemain()
3289
3322
  beautyNum = 0
@@ -3297,15 +3330,6 @@ userType:'1'
3297
3330
  }
3298
3331
  message.destroy()
3299
3332
  }
3300
- finishSessionClick= async () => {
3301
- try {
3302
- let result = await API.finishSession({
3303
- sessionId: this.state.sessionId,
3304
- tellerId: this.props.tellerAccount
3305
- });
3306
- } catch (err) {
3307
- }
3308
- }
3309
3333
  finishSession = () => {
3310
3334
  // clearInterval(this.state.OnVolumeAnalyserMap.get(sid))
3311
3335
  this.state.OnVolumeAnalyserMap.forEach((value,key,map)=>{
@@ -3778,6 +3802,29 @@ userType:'1'
3778
3802
  isModalVisibleEnd: false
3779
3803
  })
3780
3804
  };
3805
+ confirmCallback=async()=>{
3806
+ try {
3807
+ let result = await API.confirmCallback({
3808
+ idCardName: this.state.idCardName,
3809
+ staffId: this.props.tellerAccount,
3810
+ activityId: this.props.businessNumber,
3811
+ appAccount: this.state.faceCustomerUid,
3812
+ idCardNumber: this.state.idCardNumber,
3813
+ sessionId: this.state.sessionId,
3814
+ });
3815
+ if (result.code == 200) {
3816
+ this.setState({
3817
+ isModalVisibleFacial: false,
3818
+ idCardNumber: '',
3819
+ idCardName: ''
3820
+ })
3821
+ } else {
3822
+ this.messageClick('保持信息失败','error')
3823
+ }
3824
+ } catch (err) {
3825
+ this.messageClick('保持信息失败','error')
3826
+ }
3827
+ }
3781
3828
  ocrCallback= async () => {
3782
3829
  try {
3783
3830
  let result = await API.ocrCallback({
@@ -3789,7 +3836,8 @@ userType:'1'
3789
3836
  type: 1
3790
3837
  });
3791
3838
  if (result.code == 200) {
3792
- this.messageClick('识别成功','success')
3839
+ this.messageClick('姓名:' + result.data.idCardName + ',身份证号:' + result.data.idCardNumber,'success')
3840
+ // this.messageClick('识别成功','success')
3793
3841
  callNimIM('sendCustomCmdMsg', {
3794
3842
  customId: this.state.imRoomId,
3795
3843
  content: JSON.stringify({
@@ -3801,6 +3849,8 @@ userType:'1'
3801
3849
  });
3802
3850
  this.setState({
3803
3851
  isModalVisibleFacial: false
3852
+ // idCardNumber: result.data.idCardNumber,
3853
+ // idCardName: result.data.idCardName
3804
3854
  })
3805
3855
  } else {
3806
3856
  this.messageClick('识别失败','error')
@@ -4249,7 +4299,6 @@ userType:'1'
4249
4299
  function loop() {
4250
4300
  if (!$this.paused && !$this.ended) {
4251
4301
  // if(!that.state.tabTitles.find(el=>el.value == 'customerScreen')) {
4252
- console.log('addEventListener',x, y, width, height)
4253
4302
  cobj.drawImage(videoMedia, x, y, width, height, 0, 0,960, 540);
4254
4303
  // } else {
4255
4304
  // cobj.fillStyle = 'rgb(0 0 0)'
@@ -4409,7 +4458,7 @@ userType:'1'
4409
4458
  publish_config.video_profile_type=100
4410
4459
  publish_config.video_profile_diy={width:640, height:360, frameRate:15, bitrate:400}
4411
4460
  this.test_controller.ChangeMediaStream(publish_config)
4412
- beautyNum = beautyNum == 0 ? 2 : 0
4461
+ beautyNum = beautyNum == 0 ? 1 : 0
4413
4462
  this.setState({
4414
4463
  beautyName: beautyNum == 0 ? '开启美颜' : '关闭美颜'
4415
4464
  })
@@ -4555,6 +4604,12 @@ userType:'1'
4555
4604
  },100)
4556
4605
 
4557
4606
  }
4607
+ handleChangeIdCardName = (event) => {
4608
+ this.setState({idCardName: event.target.value});
4609
+ }
4610
+ handleChangeIdCardNumber = (event) => {
4611
+ this.setState({idCardNumber: event.target.value});
4612
+ }
4558
4613
  componentDidUpdate(prevProps){
4559
4614
  console.log('componentDidUpdate',prevProps,prevProps.shareMask,this.props.shareMask)
4560
4615
  if(this.props.shareMask != prevProps.shareMask) {
@@ -5213,10 +5268,13 @@ userType:'1'
5213
5268
  <div className='endModal'>是否要结束并退出会议?</div>
5214
5269
  </Modal>
5215
5270
  <Modal title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
5216
- <div key='facial'>
5271
+ !this.state.idCardName && <div key='facial'>
5217
5272
  <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
5218
5273
  <Button className="modelButtonCancel" onClick={this.sgsinImage}>重新截图</Button>
5219
5274
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkFacial}>确定</Button>
5275
+ </div>,
5276
+ this.state.idCardName && <div key='facial'>
5277
+ <Button className="modelButtonOk" type="primary" danger onClick={this.confirmCallback}>确认</Button>
5220
5278
  </div>
5221
5279
  ]}>
5222
5280
  <div className="faceBody">
@@ -5226,9 +5284,18 @@ userType:'1'
5226
5284
  <Option value="2">反面</Option>
5227
5285
  </Select>
5228
5286
  } */}
5229
- <div>
5230
- <img className="faceImg" src={this.state.facialImg} alt=""></img>
5287
+ {
5288
+ !this.state.idCardName &&<div className='faceCardImg'>
5289
+ <img className="faceImg" src={this.state.facialImg} alt=""></img>
5290
+ </div>
5291
+ }
5292
+ {
5293
+ this.state.idCardName &&<div className='resuleCard'>
5294
+ <div><span>客户姓名</span> <input type="text" value={this.state.idCardName} onChange={this.handleChangeIdCardName} /></div>
5295
+ <div><span>身份证号</span> <input type="text" value={this.state.idCardNumber} onChange={this.handleChangeIdCardNumber} /></div>
5231
5296
  </div>
5297
+ }
5298
+
5232
5299
 
5233
5300
  </div>
5234
5301
  </Modal>
@@ -5345,7 +5412,7 @@ sessionId: "",
5345
5412
  microphoneSize: 25,
5346
5413
  fontSize: '14',
5347
5414
  fontFamily: 'auto',
5348
- menus: ['BOARD','SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP'],
5415
+ menus: ['BOARD','SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP', 'BEAUTY'],
5349
5416
  customLeaveRoom: '客户离开房间',
5350
5417
  meetingInfo: {
5351
5418
  title: '--',
@@ -155,6 +155,26 @@
155
155
  }
156
156
  .faceBody{
157
157
  text-align: center;
158
+ height: 200px;
159
+ .faceCardImg{
160
+ height: 100%;
161
+ }
162
+ .resuleCard{
163
+ text-align: -webkit-left;
164
+ padding: 25Px 20px;
165
+ div{
166
+ font-size: 16Px;
167
+ color: #646464;
168
+ margin: 20Px;
169
+ input{
170
+ border: #DCDCDC 1px solid;
171
+ width: 15rem;
172
+ height: 2.5rem;
173
+ line-height: 2.5rem;
174
+ margin-left: 15px;
175
+ }
176
+ }
177
+ }
158
178
  }
159
179
  .content{
160
180
  height: 200px;