This commit is contained in:
parent
833c5a5ede
commit
5b087179eb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue