From 5360aa3d586188bffee2f3cbad4b1c8dc6771627 Mon Sep 17 00:00:00 2001 From: SylorHuang Date: Wed, 10 Jul 2019 14:39:27 +0800 Subject: [PATCH] fixbug --- app/controllers/welcome_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index 4ba53f52..cfdf5b68 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -262,7 +262,7 @@ class WelcomeController < ApplicationController reward_grade(@user, @user.id, 'Account', 500) user.update_attributes!(authentication:1) end - render :json => {:message => "sucess"} + end end #logger.info("#{list[0]}---#{list[1]}") @@ -287,6 +287,7 @@ class WelcomeController < ApplicationController # end end + render :json => {:message => "sucess"} rescue Exception => e logger.error(e.message) render :json => {:status => 500}