react_hsbc_teller 1.8.4 → 1.8.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.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -325,19 +325,8 @@ class Video extends Component {
325
325
 
326
326
  saveLog=(val)=>{
327
327
  axios({
328
- method: 'post',
329
- baseURL: this.props.logUrl,
330
- headers: {
331
- 'x-log-apiversion': '0.6.0',
332
- 'x-log-bodyrawsize': '1234',
333
- },
334
- data: {
335
- "__logs__": [
336
- {
337
- "key": val + this.state.channelId
338
- }
339
- ]
340
- },
328
+ method: 'get',
329
+ baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.8.4&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId),
341
330
 
342
331
  }).then(res => {
343
332
 
@@ -384,7 +373,7 @@ class Video extends Component {
384
373
  if(this.state.imStatus && !this.state.imJoinRoom) {
385
374
  joinRoom((this.props.tellerAccount + '@' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname), this.state.imRoomId)
386
375
  this.state.imJoinRoom =true
387
- this.saveLog('加入IM房间')
376
+ this.saveLog('Join im room')
388
377
  console.log('加入IM房间')
389
378
  }
390
379
  })
@@ -405,7 +394,7 @@ class Video extends Component {
405
394
  console.error(err);
406
395
 
407
396
  this.state.sessionType = false
408
- this.saveLog('创建房间---保存信息失败')
397
+ this.saveLog('Failed to save room information')
409
398
  if(err.status == 502 || err.status== 404) {
410
399
  this.roomCallBack(2, '连接服务器失败','SYS-02')
411
400
  } else {
@@ -482,7 +471,7 @@ class Video extends Component {
482
471
  this.handleEdit()
483
472
  }
484
473
  } catch (err) {
485
- this.saveLog('签名失败')
474
+ this.saveLog('Failed to get signature')
486
475
  console.error(err);
487
476
  if(err.status == 502 || err.status== 404) {
488
477
  this.roomCallBack(2, '连接服务器失败','SYS-02')
@@ -1130,7 +1119,7 @@ class Video extends Component {
1130
1119
  }
1131
1120
  };
1132
1121
  endSessionValue = () => {
1133
- this.saveLog('主动退出会议')
1122
+ this.saveLog('RM actively exits the meeting')
1134
1123
  if(streamShare) {
1135
1124
  streamShare.getTracks().forEach(track => track.stop());
1136
1125
  streamShare=''
@@ -1463,7 +1452,7 @@ class Video extends Component {
1463
1452
  this.setState({
1464
1453
  loading: false,
1465
1454
  })
1466
- this.saveLog('失败的code:' + code)
1455
+ this.saveLog('aborted code:' + code)
1467
1456
  if (this.state.sessionId) {
1468
1457
  if(code == 'SYS-01' || code == 'SYS-02') {
1469
1458
  this.props.joinRoomCallback({
@@ -2000,7 +1989,7 @@ class Video extends Component {
2000
1989
  console.log('im登录', msg)
2001
1990
  if(msg.status == 'error') {
2002
1991
  this.state.imStatus = false
2003
- this.saveLog('im建立连接失败')
1992
+ this.saveLog('Im connection establishment failed')
2004
1993
  this.roomCallBack(2, 'im建立连接失败',5)
2005
1994
  } else if (msg.status == 'success') {
2006
1995
  this.state.imStatus = true
@@ -2016,7 +2005,7 @@ class Video extends Component {
2016
2005
  this.timer && clearInterval(this.timer);
2017
2006
  this.state.imStatus = false
2018
2007
  console.log('IMOpenfireclose')
2019
- this.saveLog('账号重复登录')
2008
+ this.saveLog('Repeated login of account')
2020
2009
  this.roomCallBack(2, '账号重复登录',9)
2021
2010
 
2022
2011
  }
@@ -2149,7 +2138,7 @@ class Video extends Component {
2149
2138
  // 获取设备失败
2150
2139
  this.test_controller.OnGetDevicesFailed = (code, msg) => {
2151
2140
  console.log('获取设备失败', code, msg)
2152
- this.saveLog('获取设备失败')
2141
+ this.saveLog('Failed to get device')
2153
2142
  this.state.sessionType = false
2154
2143
  this.messageClick('获取设备失败,请检查摄像头设备是否可用或是否禁用摄像头','error')
2155
2144
  this.roomCallBack(2, '获取设备失败',1)
@@ -2161,7 +2150,7 @@ class Video extends Component {
2161
2150
  };
2162
2151
  this.test_controller.OnConnectFailed = (code, msg) => {
2163
2152
  console.log('建立连接失败', code, msg)
2164
- this.saveLog('建立连接失败,'+ code)
2153
+ this.saveLog('Failed to establish connection,'+ code)
2165
2154
  this.state.sessionType = false
2166
2155
  this.roomCallBack(2, '连接失败',2)
2167
2156
  };
@@ -2177,7 +2166,7 @@ class Video extends Component {
2177
2166
  // 初始化房间失败
2178
2167
  this.test_controller.OnInitRoomConfigFail = (err_code, err_msg) => {
2179
2168
  console.log('初始化房间失败', err_code, err_msg)
2180
- this.saveLog('初始化房间失败,' + err_code)
2169
+ this.saveLog('Failed to initialize room,' + err_code)
2181
2170
  this.state.sessionType = false
2182
2171
  this.roomCallBack(2, '初始化失败',3)
2183
2172
  };
@@ -2203,7 +2192,7 @@ class Video extends Component {
2203
2192
  // 创建房间失败
2204
2193
  this.test_controller.OnCreateRoomFailed = (err_code, err_msg) => {
2205
2194
  console.log('创建房间失败', err_code, err_msg)
2206
- this.saveLog('创建房间失败,' + err_code)
2195
+ this.saveLog('Failed to create room,' + err_code)
2207
2196
  this.state.sessionType = false
2208
2197
  this.roomCallBack(2, '创建房间失败',7)
2209
2198
  };
@@ -2220,7 +2209,7 @@ class Video extends Component {
2220
2209
  console.log(code, sid)
2221
2210
  if(code == 5003 || code == 5004 || code == 5005|| code == 5007|| code == 5009|| code == 5010 || code == 5011|| code == 5012) {
2222
2211
  if(sid == document.getElementById('publish_video1').name) {
2223
- this.saveLog('音视频关闭通知' + code)
2212
+ this.saveLog('Audio and video close notification,' + code)
2224
2213
  this.roomCallBack(2, '音视频异常关闭',8)
2225
2214
  } else {
2226
2215
  this.state.isScreenSwitching = false
@@ -2247,7 +2236,7 @@ class Video extends Component {
2247
2236
  };
2248
2237
  // 加入房间失败
2249
2238
  this.test_controller.OnJoinRoomFailed = (err_code, err_msg) => {
2250
- this.saveLog('加入房间失败' + err_code)
2239
+ this.saveLog('Join room failed,' + err_code)
2251
2240
  console.log('加入房间失败', err_code, err_msg)
2252
2241
  // this.setState({
2253
2242
  // sessionType: false,
@@ -2452,7 +2441,7 @@ class Video extends Component {
2452
2441
  // 发布媒体流失败
2453
2442
  this.test_controller.OnPublishFailed = (sid, err_code, err_msg) => {
2454
2443
  this.saveLog('发布失败' + err_code)
2455
- console.log('发布媒体流失败', sid, err_code, err_msg)
2444
+ console.log('Publishing media stream failed,', sid, err_code, err_msg)
2456
2445
  if(sid == document.getElementById('publish_video1').name) {
2457
2446
  this.state.sessionType = false
2458
2447
  this.roomCallBack(2, '发布失败',4)
@@ -2638,7 +2627,7 @@ class Video extends Component {
2638
2627
  err_msg
2639
2628
  ) => {
2640
2629
  console.log('订阅媒体流失败', sid, err_code, err_msg)
2641
- this.saveLog('订阅媒体流失败' + err_code)
2630
+ this.saveLog('Failed to subscribe to media stream,' + err_code)
2642
2631
  };
2643
2632
  // 推送“房间与会者列表”给新加⼊者
2644
2633
  this.test_controller.OnRoomAttendanceList = (participants) => {
@@ -3659,7 +3648,7 @@ userType:'1'
3659
3648
  }
3660
3649
  }
3661
3650
  componentWillUnmount() {
3662
- this.saveLog('退出会议')
3651
+ this.saveLog('Exit meeting')
3663
3652
  if (this.test_controller&&this.state.sessionType) {
3664
3653
  clearStreamRemain()
3665
3654
  this.test_controller.LeaveRoom()
@@ -5969,6 +5958,7 @@ userType:'1'
5969
5958
  </Select>
5970
5959
  } */}
5971
5960
  <div className='faceCardImg'>
5961
+ {/* <div>{this.state.IDtypeFrontOrBack}</div> */}
5972
5962
  <img className="faceImg" src={this.state.facialImg} alt=""></img>
5973
5963
  </div>
5974
5964
  {
@@ -6147,7 +6137,7 @@ sessionId: "",
6147
6137
  isTranscribing: false,
6148
6138
  shareMask: false,
6149
6139
  isOpenSound: false, // true开启进出音效 false不开启
6150
- logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track',
6140
+ logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',
6151
6141
  internalUrl: 'https://wp-staff-gateway.wealth-platform.uat.ali.cloud.cn.hsbc/meeting-ui/OHB/CN/HSBC?chnlID=OHB&locale=zh_CN&chnlCC=CN&chnlGMC=HSBC&targetFunc=supervisorMeeting&sourceFunc=rmMeeting'
6152
6142
  }
6153
6143
  export default Video