From 7b51f8201ce26e7335739c359f90ad3ced23467c Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 6 Dec 2019 14:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/hack_user_lastest_codes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/hack_user_lastest_codes_controller.rb b/app/controllers/hack_user_lastest_codes_controller.rb index d27ec5291..442e9ca3b 100644 --- a/app/controllers/hack_user_lastest_codes_controller.rb +++ b/app/controllers/hack_user_lastest_codes_controller.rb @@ -8,7 +8,7 @@ class HackUserLastestCodesController < ApplicationController def show @my_hack.update_attribute(:submit_status, 0) if @my_hack.submit_status == 1 - @modify = @my_hack.modify_time.to_i < @hack.modify_time.to_i + @modify = @my_hack.modify_time.to_i < @hack.hack_codes.first.modify_time.to_i end def update_code