修改wechat配置

chenlw_dev
guange 10 years ago
parent 4d1969e715
commit e487b39d16

@ -177,9 +177,9 @@ class WechatsController < ActionController::Base
uw = UserWechat.find_by_id(params[:state]) uw = UserWechat.find_by_id(params[:state])
uw.user_id = user.id uw.user_id = user.id
uw.save! uw.save!
render :text => {status:0, msg: "绑定成功"}
rescue Exception=>e rescue Exception=>e
@wechat_bind_errors = e.message render :text => {status: -1, msg: e.message}
render :login
end end
end end

Loading…
Cancel
Save