|
|
@ -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
|
|
|
|