Merge branch 'dev_shixuns' into dev_hjm_build

dev_hjm_build
daiao 6 years ago
commit 9b1af2ce6c

@ -500,7 +500,7 @@ class GamesService
game.update_column(:evaluate_count, (game.evaluate_count.to_i + 1)) game.update_column(:evaluate_count, (game.evaluate_count.to_i + 1))
# 清空代码评测信息 # 清空代码评测信息
msg = game.run_code_message msg = game.run_code_message
msg.update_column(:status => 0, :message => "") if msg.present? msg.update_attributes(:status => 0, :message => nil) if msg.present?
# 更新时间是为了TPM端显示的更新退出实训及访问实训的时候会更新 # 更新时间是为了TPM端显示的更新退出实训及访问实训的时候会更新
myshixun.update_column(:updated_at, Time.now) myshixun.update_column(:updated_at, Time.now)

Loading…
Cancel
Save