UNPKG

fcc-core

Version:

Fusion communication center.

29 lines (27 loc) 880 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 }, 'durationtext': { type: 'string', required: true }, 'startTimestr': { type: 'string', required: true } }) return new Promise(async (resolve, reject) => { xw.ajaxRequest([{ service: 'E2601501', MEET_START_WAY: 1, MEETING_NAME: params.meetingName, MEETING_TYPE: '1', MEDIAENCRYPTTYPE: '2', MEMBERS: params.memberLists, DURATION: parseInt(params.durationtext) * 60, START_TIME: params.startTimestr }]).then(data => { if (data.code === '0') { resolve(data.data) } else { reject(new xw.BaseException(424, '预约会议失败')) } }) }) }