dev_aliyun2
daiao 5 years ago committed by harry
parent 1cfa6fa068
commit 1b1b37e4d3

@ -14,7 +14,7 @@ namespace :shixuns do
puts "game_id: #{game.id}" puts "game_id: #{game.id}"
cost_time = game.end_time.to_i - game.open_time.to_i cost_time = game.end_time.to_i - game.open_time.to_i
puts "cost_time: #{cost_time}" puts "cost_time: #{cost_time}"
game.update_column!(:cost_time, cost_time) game.update_attributes!(cost_time: cost_time)
end end
end end

Loading…
Cancel
Save