UNPKG

fcc-core

Version:

Fusion communication center.

33 lines (31 loc) 813 B
export default xwEvent => { xwEvent.xw.webServiceSocket.on('118', data => { const content = JSON.parse(htmlEscapeBack(data.content)) console.log('118118118', content) xwEvent.emit('OnMeetingOver', { meetingId: content.MEETING_ID }) }) // xwEvent.xw.exe.on('OnCloseConfWindow', data => { // if (data.resultCode === 0) { // xwEvent.emit('OnMeetingOver', { // meetingId: data.data.confId // }) // } // }) } const htmlEscapeBack = (html) => { const reg = /(&lt;)|(&gt;)|(&amp;)|(&quot;)/g return html.replace(reg, function (match) { switch (match) { case '&lt;': return '<' case '&gt;': return '>' case '&amp;': return '&' case '&quot;': return '"' } }) }