dev_forum
SylorHuang 5 years ago
parent e2e5acff6f
commit 76d16698a1

@ -430,7 +430,10 @@ module ExercisesHelper
end
ex_shixun_answer_content = answers_content&.where(exercise_shixun_challenge_id: exercise_cha.id)
if ex_shixun_answer_content.blank? #把关卡的答案存入试卷的实训里
logger.info("############_________exercise_cha.challenge&.path___________###############{exercise_cha.challenge&.path}")
cha_path = challenge_path(exercise_cha.challenge&.path)
logger.info("############_________cha_path___________###############{cha_path}")
game_challenge = game.game_codes.search_challenge_path(cha_path)&.first
if game_challenge.present?
game_code = game_challenge

Loading…
Cancel
Save