react_hsbc_teller 1.8.7 → 1.8.8

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.8.7",
3
+ "version": "1.8.8",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -5,10 +5,10 @@ import Pdf from './pdf.js'
5
5
  class Demo extends Component {
6
6
  state = {
7
7
  shareMask: false,
8
- mtoken: "3c1b4badb7d7",
9
- roomId: "661841296389119",
10
- imRoomId: "iax56tSCD@conference.ls-im-xmpp.chinawp.dev.ali.cloud.cn.hsbc",
11
- sessionId: "iax56tSCD",
8
+ mtoken: "",
9
+ roomId: "",
10
+ imRoomId: "",
11
+ sessionId: "",
12
12
  // roomId: '',
13
13
  // mtoken: '',
14
14
  // imRoomId: '',
@@ -341,7 +341,7 @@ class Video extends Component {
341
341
  saveLog = (val) => {
342
342
  axios({
343
343
  method: 'get',
344
- baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.8.7&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
344
+ baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.8.8&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
345
345
 
346
346
  }).then(res => {
347
347
 
@@ -820,7 +820,12 @@ class Video extends Component {
820
820
  if (err.status == 502 || err.status == 404) {
821
821
  this.roomCallBack(2, '连接服务器失败', 'SYS-02')
822
822
  }
823
- console.error(err);
823
+ this.setState({
824
+ loadingFace: false,
825
+ faceResuly: 'fail',
826
+ isFaceImage: ''
827
+ })
828
+ console.error('err', err);
824
829
  }
825
830
  };
826
831
  uploadImg = async data => {
@@ -3789,7 +3794,7 @@ class Video extends Component {
3789
3794
  }
3790
3795
  }
3791
3796
  componentWillMount() {
3792
- console.log('hsbc_teller_sdk', '1.8.7')
3797
+ console.log('hsbc_teller_sdk', '1.8.8')
3793
3798
  if (this.props.sessionId) {
3794
3799
  this.getRoomStatus({
3795
3800
  sessionId: this.props.sessionId
@@ -4187,7 +4192,7 @@ class Video extends Component {
4187
4192
  isModalVisibleFacial: false,
4188
4193
  idCardNumber: '',
4189
4194
  idCardName: '',
4190
- certificateValidity: '',
4195
+ // certificateValidity: '',
4191
4196
  })
4192
4197
  })
4193
4198
  } else {
@@ -5272,6 +5277,7 @@ class Video extends Component {
5272
5277
  'typeId': 3300,
5273
5278
  "data": {
5274
5279
  'sessionId': this.state.sessionId,
5280
+ 'userId': this.state.customerList[this.state.customerSelect].customId,
5275
5281
  'title': '为了有效确认客户身份,请您配合进行我行的身份识别和核验。请您阅读以下内容,若您同意,请您之后在摄像头前出示您的身份证件,我行将对您的身份证件拍照并采集证件信息;同时,我行会对您进行脸部拍照,采集您的脸部图像。',
5276
5282
  'list': [
5277
5283
  {
@@ -5291,6 +5297,7 @@ class Video extends Component {
5291
5297
  'typeId': 3300,
5292
5298
  "data": {
5293
5299
  'sessionId': this.state.sessionId,
5300
+ 'userId': this.state.customerList[this.state.customerSelect].customId,
5294
5301
  'title': '为了有效确认客户身份,请您配合进行我行的身份识别。请您阅读以下内容,若您同意,请您之后在摄像头前出示您的身份证件,我行将对您的身份证件拍照并采集证件信息;',
5295
5302
  'list': [
5296
5303
  {