From 5b087179ebdeafcde9adc7c89aacf5f9aa4a18db Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Wed, 22 Jun 2016 12:31:47 +0800 Subject: [PATCH] . --- app/controllers/wechats_controller.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/controllers/wechats_controller.rb b/app/controllers/wechats_controller.rb index 8a596a470..b664c4474 100644 --- a/app/controllers/wechats_controller.rb +++ b/app/controllers/wechats_controller.rb @@ -6,7 +6,6 @@ class WechatsController < ActionController::Base # default text responder when no other match on :text do |request, content| - if content.size == 6 #邀请码 if join_class(content) root_url = "http://wechat.trustie.net" @@ -20,12 +19,10 @@ class WechatsController < ActionController::Base description: n[:content], pic_url: pic_url, url: url - end and return + end else - request.reply.text "课程邀请码不正确" and return + request.reply.text "您的意见已收到,感谢您的反馈!" # Just echo end - end - request.reply.text "您的意见已收到,感谢您的反馈!" # Just echo end # When receive 'help', will trigger this responder