UNPKG

fcc-core

Version:

Fusion communication center.

25 lines (23 loc) 684 B
export default async function (xw, params) { console.log(xw, params) await xw.validate(params, { 'memberLists': { type: 'array', required: true }, 'meetingName': { type: 'string', required: true } }) return new Promise(async (resolve, reject) => { xw.ajaxRequest([{ service: 'E2601501', MEET_START_WAY: 0, MEETING_TYPE: '1', MEETING_NAME: params.meetingName, MEMBERS: params.memberLists, MEDIAENCRYPTTYPE: '2' }]).then(data => { if (data.code === '0') { resolve('即时会议成功') } else { reject(new xw.BaseException(424, '即时会议失败')) } }) }) }