dev_course
jingquan huang 6 years ago
parent 04bb267f6f
commit 287f7ff17b

@ -118,6 +118,7 @@ class ShixunsController < ApplicationController
#@fans_count = owner.followers.count #@fans_count = owner.followers.count
#@followed_count = owner.followed_users.count #@followed_count = owner.followed_users.count
@user_own_shixuns = owner.shixuns.published.count @user_own_shixuns = owner.shixuns.published.count
uid_logger_error("777777777777777777")
end end
# 排行榜 # 排行榜

@ -15,6 +15,7 @@ class UsersController < ApplicationController
def get_user_info def get_user_info
begin begin
@user = current_user @user = current_user
uid_logger_error("############{@user.id}")
# TODO 等消息上线再打开注释 # TODO 等消息上线再打开注释
#@tidding_count = unviewed_tiddings(current_user) if current_user.present? #@tidding_count = unviewed_tiddings(current_user) if current_user.present?
@course = @course =
@ -37,6 +38,7 @@ class UsersController < ApplicationController
end end
@course_identity = current_user.course_identity(@course) if @course @course_identity = current_user.course_identity(@course) if @course
rescue Exception => e rescue Exception => e
uid_logger_error(e.message)
missing_template missing_template
end end

@ -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.follow follow?(@shixun.owner, User.current)
#json.fans_count @fans_count #json.fans_count @fans_count

Loading…
Cancel
Save