微信提示信息的修改

This commit is contained in:
cxt 2016-06-07 16:15:25 +08:00
parent de58cfb5e5
commit 768d91278d
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ class WechatsController < ActionController::Base
# default text responder when no other match
on :text do |request, content|
request.reply.text "您的意见已收到" # Just echo
request.reply.text "您的意见已收到,感谢您的反馈!" # Just echo
end
# When receive 'help', will trigger this responder
@ -179,7 +179,7 @@ class WechatsController < ActionController::Base
raise "此微信号已绑定用户, 不能重复绑定" if user_binded?(openid)
user, last_login_on = User.try_to_login(params[:username], params[:password])
raise "用户名或密码错误,请重新登录" unless user
raise "用户名或密码错误,请重新输入" unless user
#补全用户信息
raise "此用户已经绑定过公众号, 请换一个帐户试试" if user.user_wechat