react_hsbc_teller 2.0.72 → 2.0.73

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": "2.0.72",
3
+ "version": "2.0.73",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -46,15 +46,15 @@ class Demo extends Component {
46
46
  needPreSale: false
47
47
  }
48
48
  componentWillMount() {
49
- if(window.localStorage.getItem('sessionId') && window.localStorage.getItem('sessionId') != 'null' && window.localStorage.getItem('sessionId') != 'undefined') {
50
- this.setState({roomId: window.localStorage.getItem('roomId')});
51
- this.setState({mtoken: window.localStorage.getItem('mtoken')});
52
- this.setState({sessionId:window.localStorage.getItem('sessionId')});
53
- this.setState({imRoomId: window.localStorage.getItem('imRoomId')});
54
- this.setState({
55
- isVideo: true
56
- })
57
- }
49
+ // if(window.localStorage.getItem('sessionId') && window.localStorage.getItem('sessionId') != 'null' && window.localStorage.getItem('sessionId') != 'undefined') {
50
+ // this.setState({roomId: window.localStorage.getItem('roomId')});
51
+ // this.setState({mtoken: window.localStorage.getItem('mtoken')});
52
+ // this.setState({sessionId:window.localStorage.getItem('sessionId')});
53
+ // this.setState({imRoomId: window.localStorage.getItem('imRoomId')});
54
+ // this.setState({
55
+ // isVideo: true
56
+ // })
57
+ // }
58
58
 
59
59
  }
60
60
  handleChangeRoomId = (event) => {
@@ -63,7 +63,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
63
63
  import axios from 'axios';
64
64
  import CryptoJS from "crypto-js";
65
65
 
66
- const SDK_VERISON = '2.0.72'
66
+ const SDK_VERISON = '2.0.73'
67
67
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
68
68
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
69
69
  const { Option } = Select;
@@ -410,7 +410,7 @@ class Video extends Component {
410
410
  publish_config.video_profile_diy = { width: 640, height: 360, frameRate: 15, bitrate: 400 }
411
411
  publish_config.publish_video_id = 'publish_video1'
412
412
  publish_config.publish_streamId_id = 'publish_streamId1'
413
- publish_config.publish_tag = 'tag1customer'
413
+ publish_config.publish_tag = 'tag1'
414
414
  if (this.props.recordMode == 2) {
415
415
  // 分行模式,只收音 不发布摄像头
416
416
  publish_config.media_type = 2
@@ -564,7 +564,7 @@ class Video extends Component {
564
564
  {
565
565
  publish_video_id: 'publish_video1',
566
566
  publish_streamId_id: 'publish_streamId1',
567
- publish_tag: 'tag1customer'
567
+ publish_tag: 'tag1'
568
568
  },
569
569
  // {
570
570
  // publish_video_id: 'publish_video2',
@@ -652,49 +652,49 @@ class Video extends Component {
652
652
  height: 720
653
653
  },
654
654
  {
655
- tag: 'tag1customer',
655
+ tag: 'tag1',
656
656
  xPosition: 0,
657
657
  yPosition: 0,
658
658
  width: 213 * SCALE,
659
659
  height: 175 * SCALE
660
660
  },
661
661
  {
662
- tag: 'customer1',
662
+ tag: 'customertag1',
663
663
  xPosition: 213 * SCALE,
664
664
  yPosition: 0,
665
665
  width: 213 * SCALE,
666
666
  height: 175 * SCALE
667
667
  },
668
668
  {
669
- tag: 'customer2',
669
+ tag: 'customertag2',
670
670
  xPosition: 426 * SCALE,
671
671
  yPosition: 0,
672
672
  width: 213 * SCALE,
673
673
  height: 175 * SCALE
674
674
  },
675
675
  {
676
- tag: 'customer3',
676
+ tag: 'customertag3',
677
677
  xPosition: 639 * SCALE,
678
678
  yPosition: 0,
679
679
  width: 213 * SCALE,
680
680
  height: 175 * SCALE
681
681
  },
682
682
  {
683
- tag: 'customer4',
683
+ tag: 'customertag4',
684
684
  xPosition: 852 * SCALE,
685
685
  yPosition: 0,
686
686
  width: 213 * SCALE,
687
687
  height: 175 * SCALE
688
688
  },
689
689
  {
690
- tag: 'customer5',
690
+ tag: 'customertag5',
691
691
  xPosition: 1065 * SCALE,
692
692
  yPosition: 0,
693
693
  width: 213 * SCALE,
694
694
  height: 175 * SCALE
695
695
  },
696
696
  {
697
- tag: 'customer6',
697
+ tag: 'customertag6',
698
698
  xPosition: 1278 * SCALE,
699
699
  yPosition: 0,
700
700
  width: 213 * SCALE,
@@ -753,7 +753,7 @@ class Video extends Component {
753
753
  },
754
754
  ];
755
755
  recordParam.tagPositions = list
756
- recordParam.tagFilter = 'customer'
756
+ recordParam.tagFilter = 'tag'
757
757
  console.log('recordParam', recordParam);
758
758
  // 开启音频录制,如果有业务id用,没用sessionid 用于在成功回调里去区分是音频还是正常
759
759
  that.test_controller.StartRemoteRecord(filePath, recordParam, record_business_id ? record_business_id + '_' + type : this.state.sessionId + '_' + type)
@@ -791,49 +791,49 @@ class Video extends Component {
791
791
  // height: 350
792
792
  // },
793
793
  {
794
- tag: 'tag1customer',
794
+ tag: 'tag1',
795
795
  xPosition: 0,
796
796
  yPosition: 0,
797
797
  width: 213 * SCALE,
798
798
  height: 175 * SCALE
799
799
  },
800
800
  {
801
- tag: 'customer1',
801
+ tag: 'customertag1',
802
802
  xPosition: 213 * SCALE,
803
803
  yPosition: 0,
804
804
  width: 213 * SCALE,
805
805
  height: 175 * SCALE
806
806
  },
807
807
  {
808
- tag: 'customer2',
808
+ tag: 'customertag2',
809
809
  xPosition: 426 * SCALE,
810
810
  yPosition: 0,
811
811
  width: 213 * SCALE,
812
812
  height: 175 * SCALE
813
813
  },
814
814
  {
815
- tag: 'customer3',
815
+ tag: 'customertag3',
816
816
  xPosition: 639 * SCALE,
817
817
  yPosition: 0,
818
818
  width: 213 * SCALE,
819
819
  height: 175 * SCALE
820
820
  },
821
821
  {
822
- tag: 'customer4',
822
+ tag: 'customertag4',
823
823
  xPosition: 852 * SCALE,
824
824
  yPosition: 0,
825
825
  width: 213 * SCALE,
826
826
  height: 175 * SCALE
827
827
  },
828
828
  {
829
- tag: 'customer5',
829
+ tag: 'customertag5',
830
830
  xPosition: 1065 * SCALE,
831
831
  yPosition: 0,
832
832
  width: 213 * SCALE,
833
833
  height: 175 * SCALE
834
834
  },
835
835
  {
836
- tag: 'customer6',
836
+ tag: 'customertag6',
837
837
  xPosition: 1278 * SCALE,
838
838
  yPosition: 0,
839
839
  width: 213 * SCALE,
@@ -950,7 +950,7 @@ class Video extends Component {
950
950
  width: 1280,
951
951
  height: 720
952
952
  },{
953
- tag: 'tag1customer',
953
+ tag: 'tag1',
954
954
  xPosition: 0,
955
955
  yPosition: 0,
956
956
  width: 0,
@@ -2610,7 +2610,7 @@ class Video extends Component {
2610
2610
  publish_config.video_profile_diy = { width: 640, height: 360, frameRate: 15, bitrate: 400 }
2611
2611
  publish_config.publish_video_id = 'publish_video1'
2612
2612
  publish_config.publish_streamId_id = 'publish_streamId1'
2613
- publish_config.publish_tag = 'tag1customer'
2613
+ publish_config.publish_tag = 'tag1'
2614
2614
  if (this.props.recordMode == 2) {
2615
2615
  // 分行模式,只收音 不发布摄像头
2616
2616
  publish_config.media_type = 2
@@ -2688,8 +2688,8 @@ class Video extends Component {
2688
2688
  // if (publish_device != 2) {
2689
2689
  // return stream
2690
2690
  // }
2691
- if (publish_tag == 'tag1customer') {
2692
- console.log('tag1customer', stream)
2691
+ if (publish_tag == 'tag1') {
2692
+ console.log('tag1', stream)
2693
2693
  let newStream = stream;
2694
2694
  if (stream.getVideoTracks()[0]) {
2695
2695
  if (this.state.beautyType || isSuccuseHs){
@@ -2866,6 +2866,7 @@ class Video extends Component {
2866
2866
  })
2867
2867
  this.roomCallBack(2, '发布失败', '4-' + err_code)
2868
2868
  } else {
2869
+ this.test_controller.UnPublish(sid)
2869
2870
  this.messageClick('投屏失败请重新投屏', 'error')
2870
2871
  this.setSharedScreenState(false)
2871
2872
  this.setSharedScreenTimer(false)
@@ -4411,6 +4412,7 @@ class Video extends Component {
4411
4412
  }
4412
4413
  componentWillMount() {
4413
4414
  console.log('hsbc_teller_sdk', SDK_VERISON)
4415
+ console.log(`${this.props.recordMode ==1 ?'远程录制' :'网点录制'} ${this.props.salesBranchCode || ''} ${this.state.branchName || ''} ${this.props.financialOffice || ''}`)
4414
4416
  let arr = []
4415
4417
  for(let i=1;i<=12;i++){
4416
4418
  arr.push({