打印日志

dev_hjm
daiao 6 years ago
parent 11fb99285a
commit 2804dc2580

@ -1459,6 +1459,7 @@ class HomeworkCommonsController < ApplicationController
if game_codes.count > 0 if game_codes.count > 0
code_rate += game_codes.map(&:rate).sum / challenge.path.split("").length code_rate += game_codes.map(&:rate).sum / challenge.path.split("").length
end end
logger.info("#####game_codes: #{game_codes}")
target = game_codes.count > 0 ? game_codes[0].target_user_id : nil target = game_codes.count > 0 ? game_codes[0].target_user_id : nil
# 作品完成时间 # 作品完成时间
game = challenge.games.find_by(user_id: @user.id) game = challenge.games.find_by(user_id: @user.id)

Loading…
Cancel
Save