更新代码

dev_daiao
daiao 5 years ago
parent f50aa94d59
commit 0376d280be

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

Loading…
Cancel
Save