From 555d0741a5ea832dd1f386680a470e9ab4494c41 Mon Sep 17 00:00:00 2001 From: pascal_lin Date: Thu, 8 Jun 2017 11:09:57 +0800 Subject: [PATCH] =?UTF-8?q?success=E5=9B=9E=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/wechat.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/wechat.js b/lib/wechat.js index e4124eb..c39f6a9 100644 --- a/lib/wechat.js +++ b/lib/wechat.js @@ -261,6 +261,13 @@ class Wechat { ctx.body = ''; return; } + /** + * 全网发布时component_verify_ticket需要回复success + */ + if (body === 'success') { + ctx.body = 'success'; + return; + } var replyMessageXml = reply(body, formatted.ToUserName, formatted.FromUserName);