From 287f7ff17b15d7c3bb0972d495e33435490c333f Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 22 Jun 2019 09:07:50 +0800 Subject: [PATCH] test 403 --- app/controllers/shixuns_controller.rb | 1 + app/controllers/users_controller.rb | 2 ++ app/views/shixuns/show_right.json.jbuilder | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 499bd0aa4..e47064e24 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -118,6 +118,7 @@ class ShixunsController < ApplicationController #@fans_count = owner.followers.count #@followed_count = owner.followed_users.count @user_own_shixuns = owner.shixuns.published.count + uid_logger_error("777777777777777777") end # 排行榜 diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index d01973175..d65675aac 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -15,6 +15,7 @@ class UsersController < ApplicationController def get_user_info begin @user = current_user + uid_logger_error("############{@user.id}") # TODO 等消息上线再打开注释 #@tidding_count = unviewed_tiddings(current_user) if current_user.present? @course = @@ -37,6 +38,7 @@ class UsersController < ApplicationController end @course_identity = current_user.course_identity(@course) if @course rescue Exception => e + uid_logger_error(e.message) missing_template end diff --git a/app/views/shixuns/show_right.json.jbuilder b/app/views/shixuns/show_right.json.jbuilder index 8f4679a37..e3414df55 100644 --- a/app/views/shixuns/show_right.json.jbuilder +++ b/app/views/shixuns/show_right.json.jbuilder @@ -1,4 +1,4 @@ -json.partial! 'shixuns/right', locals: { shixun: @shixun } +# json.partial! 'shixuns/right', locals: { shixun: @shixun } #json.follow follow?(@shixun.owner, User.current) #json.fans_count @fans_count