代码修改

dev_daiao
daiao 5 years ago
parent 75f76e1400
commit 7b51f8201c

@ -8,7 +8,7 @@ class HackUserLastestCodesController < ApplicationController
def show def show
@my_hack.update_attribute(:submit_status, 0) if @my_hack.submit_status == 1 @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 end
def update_code def update_code

Loading…
Cancel
Save