关注和绑定登录后发送欢迎消息

This commit is contained in:
cxt 2016-04-26 09:03:01 +08:00
parent 2345eb9d64
commit 49a7e2ce1d
1 changed files with 2 additions and 0 deletions

View File

@ -133,6 +133,7 @@ class WechatsController < ActionController::Base
if uw && uw.user
request.reply.text "欢迎回来, #{uw.user.show_name}"
else
request.reply.text "欢迎关注Trustie创新实践社区"
sendBind(request)
end
end
@ -177,6 +178,7 @@ class WechatsController < ActionController::Base
openid: openid,
user: user
)
request.reply.text "欢迎加入Trustie创新实践社区"
render :json => {status:0, msg: "绑定成功"}
rescue Exception=>e
render :json => {status: -1, msg: e.message}