UNPKG

@tnwx/commons

Version:

TTNWX 微信系开发脚手架之公共模块

32 lines 944 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @author Javen * @copyright javendev@126.com * @description 转发多客服消息 或者 转发到指定客服 */ const OutMsg_1 = require("./OutMsg"); class OutCustomMsg extends OutMsg_1.OutMsg { constructor(inMsg) { super(inMsg); this.msgType = 'transfer_customer_service'; } toXml() { let str = super.toXml(); if (null != this.transInfo && this.transInfo.getKfAccount) { str += '<TransInfo>\n'; str += '<KfAccount><![CDATA[' + this.transInfo.getKfAccount + ']]></KfAccount>\n'; str += '</TransInfo>\n'; } str += '</xml>\n'; return str; } getTransInfo() { return this.transInfo; } setTransInfo(transInfo) { this.transInfo = transInfo; } } exports.OutCustomMsg = OutCustomMsg; //# sourceMappingURL=OutCustomMsg.js.map