关注和绑定登录后发送欢迎消息
This commit is contained in:
parent
2345eb9d64
commit
49a7e2ce1d
|
@ -133,6 +133,7 @@ class WechatsController < ActionController::Base
|
||||||
if uw && uw.user
|
if uw && uw.user
|
||||||
request.reply.text "欢迎回来, #{uw.user.show_name}"
|
request.reply.text "欢迎回来, #{uw.user.show_name}"
|
||||||
else
|
else
|
||||||
|
request.reply.text "欢迎关注Trustie创新实践社区"
|
||||||
sendBind(request)
|
sendBind(request)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -177,6 +178,7 @@ class WechatsController < ActionController::Base
|
||||||
openid: openid,
|
openid: openid,
|
||||||
user: user
|
user: user
|
||||||
)
|
)
|
||||||
|
request.reply.text "欢迎加入Trustie创新实践社区"
|
||||||
render :json => {status:0, msg: "绑定成功"}
|
render :json => {status:0, msg: "绑定成功"}
|
||||||
rescue Exception=>e
|
rescue Exception=>e
|
||||||
render :json => {status: -1, msg: e.message}
|
render :json => {status: -1, msg: e.message}
|
||||||
|
|
Loading…
Reference in New Issue