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

@ -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
# 排行榜

@ -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

@ -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

Loading…
Cancel
Save