没代码的实训评测报错

dev_forum
daiao 5 years ago
parent 78a31d1b4b
commit baa38da183

@ -319,6 +319,7 @@ class ApplicationController < ActionController::Base
# 通关后,把最后一次成功的代码存到数据库
# type 0 创始内容, 1 最新内容
def game_passed_code(path, myshixun, game_id)
return if path.blank?
file_content = git_fle_content myshixun.repo_path, path
unless file_content.present?
raise("获取文件代码异常")

Loading…
Cancel
Save