react_hsbc_teller 1.8.6 → 1.8.7

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.6",
3
+ "version": "1.8.7",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -5,19 +5,19 @@ import Pdf from './pdf.js'
5
5
  class Demo extends Component {
6
6
  state = {
7
7
  shareMask: false,
8
- mtoken: "492948d0a7ec",
9
- roomId: "656467744508298",
10
- imRoomId: "ACkhcdtat@conference.openfire2.leimondata.cn",
11
- sessionId: "ACkhcdtat",
8
+ mtoken: "3c1b4badb7d7",
9
+ roomId: "661841296389119",
10
+ imRoomId: "iax56tSCD@conference.ls-im-xmpp.chinawp.dev.ali.cloud.cn.hsbc",
11
+ sessionId: "iax56tSCD",
12
12
  // roomId: '',
13
13
  // mtoken: '',
14
14
  // imRoomId: '',
15
15
  // sessionId: '',
16
16
  isVideo: false,
17
- tellerAccount: '00000000',
17
+ tellerAccount: 'wmzTeller',
18
18
  // callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
19
19
  callbackUrl: 'https://aag.wealth-platform.uat.ali.cloud.cn.hsbc/nosaml/api/appointment/wealth/api/v1/appointment/ali/createMeetingRoom',
20
- businessNumber: '',
20
+ businessNumber: '123',
21
21
  lang: 'zh',
22
22
  // roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
23
23
  // baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
@@ -161,6 +161,18 @@ joinRoomCallback=(data)=>{
161
161
  userExit =(val)=>{
162
162
      console.log(val)
163
163
  }
164
+ staffPermission=(val)=>{
165
+ return new Promise((resolve, reject) => {
166
+ setTimeout(() => { // 定时器
167
+ if(val.staffId && val.password) {
168
+ resolve('成功')
169
+ } else {
170
+ reject('失败')
171
+ }
172
+ }, 2000)
173
+
174
+ })
175
+ }
164
176
  render() {
165
177
  return (
166
178
  <div className="test">
@@ -193,6 +205,7 @@ userExit =(val)=>{
193
205
  joinRoomCallback={this.joinRoomCallback}
194
206
  imgCallback={this.imgCallback}
195
207
  userExit={this.userExit}
208
+ staffPermission={this.staffPermission}
196
209
  >
197
210
 
198
211
  <Pdf></Pdf>