关注和绑定登录后发送欢迎消息
This commit is contained in:
parent
2345eb9d64
commit
49a7e2ce1d
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue