Commit 4f4f8f35 authored by 任国军's avatar 任国军

fix token bug

parent d33b2c8b
Pipeline #22622 passed with stage
in 3 seconds
......@@ -52,10 +52,10 @@ class WechatService extends Service {
if (!flag) {
this.ctx.set('content-type', 'text/xml');
const xml = `<xml>
<ToUserName><![CDATA[${data.FromUserName}]]></ToUserName>
<FromUserName><![CDATA[${data.ToUserName}]]></FromUserName>
<ToUserName>${data.ToUserName}</ToUserName>
<FromUserName>${data.FromUserName}</FromUserName>
<CreateTime>${parseInt(new Date() / 1000)}</CreateTime>
<MsgType><![CDATA[transfer_customer_service]]></MsgType>
<MsgType>transfer_customer_service</MsgType>
</xml>`;
this.ctx.body = xml;
ctx.logger.info('course_ctx: ' + JSON.stringify(this.ctx));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment