|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
class HackUserLastestCodesController < ApplicationController
|
|
|
|
|
before_action :require_login, except: [:listen_result]
|
|
|
|
|
before_action :find_user_hack, only: [:show, :code_debug, :update_code, :listen_result]
|
|
|
|
|
before_action :update_user_hack_status, only: [:code_debug, :code_submit]
|
|
|
|
|
#before_action :update_user_hack_status, only: [:code_debug, :code_submit]
|
|
|
|
|
before_action :require_auth_identity, only: [:update_code]
|
|
|
|
|
before_action :require_manager_identity, only: [:update_code]
|
|
|
|
|
|
|
|
|
@ -72,6 +72,7 @@ class HackUserLastestCodesController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def oj_evaluate exec_mode, error_status, error_msg
|
|
|
|
|
update_user_hack_status
|
|
|
|
|
request_url = "#{edu_setting('cloud_bridge')}/bridge/ojs/evaluate"
|
|
|
|
|
test_sets =
|
|
|
|
|
if exec_mode == "normal"
|
|
|
|
|