react_hsbc_teller 1.9.27 → 1.9.29

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.27",
3
+ "version": "1.9.29",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -296,7 +296,7 @@ class Video extends Component {
296
296
  saveLog = (val) => {
297
297
  axios({
298
298
  method: 'get',
299
- baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.27&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
299
+ baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.29&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
300
300
 
301
301
  }).then(res => {
302
302
 
@@ -1985,6 +1985,10 @@ class Video extends Component {
1985
1985
  participants.map((item, index) => {
1986
1986
  if (item.uid != this.state.tellerAccount) {
1987
1987
  item.publish.map((itemOne, indexOne) => {
1988
+ if (itemOne.tag && itemOne.tag.includes('UnSubscribe_RM')) {
1989
+ console.log('过滤订阅的tag:', itemOne.tag)
1990
+ return
1991
+ }
1988
1992
  let array = this.state.roomCustomerList;
1989
1993
  let newArray = [...array];
1990
1994
  newArray.push({
@@ -2062,6 +2066,10 @@ class Video extends Component {
2062
2066
  this.test_controller.OnNewPublish = (feed) => {
2063
2067
  console.log('有新发布者', feed);
2064
2068
  console.log(new Date())
2069
+ if (feed.tag && feed.tag.includes('UnSubscribe_RM')) {
2070
+ console.log('过滤订阅的tag:', feed.tag)
2071
+ return
2072
+ }
2065
2073
  callNimIM('sendCustomCmdMsg', {
2066
2074
  customId: this.state.imRoomId,
2067
2075
  content: JSON.stringify({
@@ -2288,6 +2296,10 @@ class Video extends Component {
2288
2296
  // let audio = new Audio(src)
2289
2297
  // audio.play()
2290
2298
  // }
2299
+ if (participant.includes('UnHint')){
2300
+ console.log('过滤掉的uid', participant)
2301
+ return
2302
+ }
2291
2303
 
2292
2304
 
2293
2305
  this.appGetUsernameClick(participant).then((res) => {
@@ -2751,9 +2763,6 @@ class Video extends Component {
2751
2763
  clearStreamRemain()
2752
2764
  this.test_controller.LeaveRoom()
2753
2765
  this.test_controller.Disconnect()
2754
- setTimeout(() => {
2755
- this.saveLocalLog();
2756
- }, 500);
2757
2766
  try {
2758
2767
  beautySetMode('none');
2759
2768
  beautyStop();
@@ -2959,7 +2968,7 @@ class Video extends Component {
2959
2968
  }
2960
2969
  }
2961
2970
  componentWillMount() {
2962
- console.log('hsbc_teller_sdk', '1.9.27')
2971
+ console.log('hsbc_teller_sdk', '1.9.29')
2963
2972
  let arr = []
2964
2973
  for(let i=1;i<=12;i++){
2965
2974
  arr.push({
@@ -3054,25 +3063,6 @@ class Video extends Component {
3054
3063
  return true
3055
3064
  }
3056
3065
  };
3057
- // 保存日志
3058
- saveLocalLog = () => {
3059
- const dat = new Date();
3060
- //格式化时间
3061
- const year = dat.getFullYear();
3062
- const mon = (dat.getMonth()+1) < 10 ? "0"+(dat.getMonth()+1) : dat.getMonth()+1;
3063
- const day = dat.getDate() < 10 ? "0"+(dat.getDate()) : dat.getDate();
3064
- const hour = dat.getHours() < 10 ? "0"+(dat.getHours()) : dat.getHours();
3065
- const min = dat.getMinutes() < 10 ? "0"+(dat.getMinutes()) : dat.getMinutes();
3066
- const sec = dat.getSeconds() < 10 ? "0"+(dat.getSeconds()) : dat.getSeconds();
3067
-
3068
- const newDate = year +""+ mon +""+ day +"_"+ hour +""+ min +""+ sec;
3069
- try {
3070
- this.test_controller.DownloadLog('Log_'+ this.props.sessionId + '_' + newDate);
3071
- } catch(err) {
3072
- console.log('当前SDK版本暂不支持保存本地日志,请更新后重试')
3073
- // this.messageClick('当前SDK版本暂不支持,请更新后重试', 'error')
3074
- }
3075
- }
3076
3066
  cameraClick = () => {
3077
3067
  if (this.isFileSuccuse()) {
3078
3068
  if (!this.state.audioed) {