react_hsbc_teller 1.9.27 → 1.9.28
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/dist wpb.zip +0 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +10 -24
package/package.json
CHANGED
|
@@ -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.
|
|
299
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.28&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({
|
|
@@ -2751,9 +2759,6 @@ class Video extends Component {
|
|
|
2751
2759
|
clearStreamRemain()
|
|
2752
2760
|
this.test_controller.LeaveRoom()
|
|
2753
2761
|
this.test_controller.Disconnect()
|
|
2754
|
-
setTimeout(() => {
|
|
2755
|
-
this.saveLocalLog();
|
|
2756
|
-
}, 500);
|
|
2757
2762
|
try {
|
|
2758
2763
|
beautySetMode('none');
|
|
2759
2764
|
beautyStop();
|
|
@@ -2959,7 +2964,7 @@ class Video extends Component {
|
|
|
2959
2964
|
}
|
|
2960
2965
|
}
|
|
2961
2966
|
componentWillMount() {
|
|
2962
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
2967
|
+
console.log('hsbc_teller_sdk', '1.9.28')
|
|
2963
2968
|
let arr = []
|
|
2964
2969
|
for(let i=1;i<=12;i++){
|
|
2965
2970
|
arr.push({
|
|
@@ -3054,25 +3059,6 @@ class Video extends Component {
|
|
|
3054
3059
|
return true
|
|
3055
3060
|
}
|
|
3056
3061
|
};
|
|
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
3062
|
cameraClick = () => {
|
|
3077
3063
|
if (this.isFileSuccuse()) {
|
|
3078
3064
|
if (!this.state.audioed) {
|