react_hsbc_teller 1.9.3 → 1.9.4

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.9.3",
3
+ "version": "1.9.4",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -15,23 +15,24 @@ sessionId: "iax56tSCD",
15
15
  // sessionId: '',
16
16
  isVideo: false,
17
17
  tellerAccount: 'wmzTeller',
18
- // callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
19
- callbackUrl: 'https://aag.wealth-platform.uat.ali.cloud.cn.hsbc/nosaml/api/appointment/wealth/api/v1/appointment/ali/createMeetingRoom',
18
+ callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
19
+ // callbackUrl: 'https://aag.wealth-platform.uat.ali.cloud.cn.hsbc/nosaml/api/appointment/wealth/api/v1/appointment/ali/createMeetingRoom',
20
20
  businessNumber: '123',
21
21
  lang: 'zh',
22
- // roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
23
- // baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
24
- // resourcePath: 'https://counter-web.leimondata.cn:7199',
25
- roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
26
- baseURL:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
27
- resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
22
+ roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
23
+ baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
24
+ resourcePath: 'https://counter-web.leimondata.cn:7199',
25
+ // roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
26
+ // baseURL:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
27
+ // resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
28
28
  prohibitPrompt: '无客户',
29
29
  titleBackground: '#40a9ff',
30
30
  titleColor: '#faad14',
31
31
  microphoneSize: 50,
32
32
  fontSize: 14,
33
33
  fontFamily: 'auto',
34
- isTranscribing: false
34
+ isTranscribing: false,
35
+ userSide: 2
35
36
  }
36
37
  componentWillMount() {
37
38
  // if(window.localStorage.getItem('roomId')) {
@@ -158,6 +159,11 @@ createRoomCallback=(data)=>{
158
159
  joinRoomCallback=(data)=>{
159
160
  console.log('joinRoomCallback', data)
160
161
  }
162
+ handleChangeUserSide = (event) => {
163
+ this.setState({
164
+ userSide: event.target.value
165
+ })
166
+ }
161
167
  userExit =(val)=>{
162
168
      console.log(val)
163
169
  }
@@ -185,6 +191,7 @@ userExit =(val)=>{
185
191
  mtoken={this.state.mtoken}
186
192
  sessionId={this.state.sessionId}
187
193
  imRoomId={this.state.imRoomId}
194
+ userSide={this.state.userSide}
188
195
  prohibitPrompt={this.state.prohibitPrompt}
189
196
  voiceColor={this.state.voiceColor}
190
197
  titleBackground={this.state.titleBackground}
@@ -227,6 +234,7 @@ userExit =(val)=>{
227
234
  <div>sessionId: <input type="text" value={this.state.sessionId} onChange={this.handleChangeSessionId} /></div>
228
235
  <div>imRoomId: <input type="text" value={this.state.imRoomId} onChange={this.handleChangeImRoomId} /></div>
229
236
  <div>isTranscribing: <input type="text" value={this.state.isTranscribing} onChange={this.handleChangeisTranscribing} /></div>
237
+ <div>userSide: <input type="text" value={this.state.userSide} onChange={this.handleChangeUserSide} /></div>
230
238
 
231
239
  <button className="button" onClick={this.startVideo.bind(this)}>开启视频</button>
232
240
  </div>
@@ -351,7 +351,7 @@ class Video extends Component {
351
351
  saveLog = (val) => {
352
352
  axios({
353
353
  method: 'get',
354
- baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.3&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
354
+ baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.4&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
355
355
 
356
356
  }).then(res => {
357
357
 
@@ -3621,6 +3621,7 @@ class Video extends Component {
3621
3621
  appAccount: this.props.tellerAccount,
3622
3622
  sessionId: this.state.sessionId,
3623
3623
  username: this.props.meetingInfo.host == '--' ? '' : this.props.meetingInfo.host,
3624
+ userSide: this.props.userSide,
3624
3625
  type: '2'
3625
3626
  });
3626
3627
  console.log(result);
@@ -3850,7 +3851,7 @@ class Video extends Component {
3850
3851
  }
3851
3852
  }
3852
3853
  componentWillMount() {
3853
- console.log('hsbc_teller_sdk', '1.9.3')
3854
+ console.log('hsbc_teller_sdk', '1.9.4')
3854
3855
  if (this.props.sessionId) {
3855
3856
  this.getRoomStatus({
3856
3857
  sessionId: this.props.sessionId
@@ -6567,6 +6568,7 @@ Video.defaultProps = {
6567
6568
  isTranscribing: false,
6568
6569
  shareMask: false,
6569
6570
  isOpenSound: false, // true开启进出音效 false不开启
6571
+ userSide: 2,
6570
6572
  logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',
6571
6573
  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'
6572
6574
  }