react_hsbc_teller 1.9.17 → 1.9.18
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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +40 -2
package/package.json
CHANGED
|
@@ -294,7 +294,7 @@ class Video extends Component {
|
|
|
294
294
|
saveLog = (val) => {
|
|
295
295
|
axios({
|
|
296
296
|
method: 'get',
|
|
297
|
-
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.
|
|
297
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.18&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
298
298
|
|
|
299
299
|
}).then(res => {
|
|
300
300
|
|
|
@@ -1746,6 +1746,44 @@ class Video extends Component {
|
|
|
1746
1746
|
this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
|
+
if (JSON.parse(msg).typeId == 4004 && this.state.sessionId == JSON.parse(msg).data.sessionId) {
|
|
1750
|
+
if (this.isFileSuccuse()) {
|
|
1751
|
+
if (!this.state.voiceStatue) {
|
|
1752
|
+
// 静音本地
|
|
1753
|
+
this.setState({
|
|
1754
|
+
voiceStatue: true,
|
|
1755
|
+
voiceImg: voiceImgCloe,
|
|
1756
|
+
voiceName: '解除静音'
|
|
1757
|
+
});
|
|
1758
|
+
let sid = document.getElementById('publish_video1').name || document.getElementById('publish_streamId1').name;
|
|
1759
|
+
this.test_controller.SetLocalAudioEnable(0, parseInt(sid, 10));
|
|
1760
|
+
callNimIM('sendCustomCmdMsg', {
|
|
1761
|
+
customId: this.state.imRoomId,
|
|
1762
|
+
content: JSON.stringify({
|
|
1763
|
+
'typeId': 1013,
|
|
1764
|
+
'muteStatus': 1,
|
|
1765
|
+
'data': {
|
|
1766
|
+
'sessionId': this.state.sessionId,
|
|
1767
|
+
'userId': this.props.tellerAccount
|
|
1768
|
+
}
|
|
1769
|
+
})
|
|
1770
|
+
}, function (code, message, data) {
|
|
1771
|
+
// console.log(data)
|
|
1772
|
+
})
|
|
1773
|
+
}
|
|
1774
|
+
setTimeout(() => {
|
|
1775
|
+
callNimIM('sendCustomCmdMsg', {
|
|
1776
|
+
customId: this.state.imRoomId,
|
|
1777
|
+
content: JSON.stringify({
|
|
1778
|
+
'typeId': 1223,
|
|
1779
|
+
'state': 1, // app解除静音
|
|
1780
|
+
'sessionId': this.state.sessionId,
|
|
1781
|
+
'userId': uid //this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
1782
|
+
})
|
|
1783
|
+
});
|
|
1784
|
+
}, 1000);
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1749
1787
|
this.saveLog('mrtc OnReceiveTextMsg info:', uid, msg, JSON.parse(msg).typeId, JSON.parse(msg).data.sessionId, this.state.sessionId)
|
|
1750
1788
|
}
|
|
1751
1789
|
this.test_controller.StreamFilterHandler = async (publish_tag, stream, stream_type, publish_device, media_type) => {
|
|
@@ -2936,7 +2974,7 @@ class Video extends Component {
|
|
|
2936
2974
|
}
|
|
2937
2975
|
}
|
|
2938
2976
|
componentWillMount() {
|
|
2939
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
2977
|
+
console.log('hsbc_teller_sdk', '1.9.18')
|
|
2940
2978
|
let arr = []
|
|
2941
2979
|
for(let i=1;i<=12;i++){
|
|
2942
2980
|
arr.push({
|