if @result[:status] == 1 json.(@result, :status, :resubmit, :position, :port, :had_done) else json.(@result, :status, :message, :position, :had_done) end