mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-26 01:11:52 +00:00
fix: 7794800603
This commit is contained in:
parent
7794800603
commit
3d63a011ac
@ -241,10 +241,10 @@ if ($pre_submit_check_ret === true && !$no_more_submission) {
|
||||
return in_array($opt, $remote_provider['submit_type']) ? '' : '无效选项';
|
||||
}, null);
|
||||
$answer_form->add('answer_remote_account_data', '', function ($data) {
|
||||
return json_decode($data) !== null ? '' : '无效数据';
|
||||
return $_POST['answer_remote_submit_type'] == 'bot' || json_decode($data) !== null ? '' : '无效数据';
|
||||
}, null);
|
||||
$answer_form->add('answer_remote_submission_id', '', function ($id) {
|
||||
return validateUInt($id) ? '' : '无效 ID';
|
||||
return $_POST['answer_remote_submit_type'] != 'archive' || validateUInt($id) ? '' : '无效 ID';
|
||||
}, null);
|
||||
$answer_form->appendHTML(<<<EOD
|
||||
<h5>Remote Judge 配置</h5>
|
||||
|
@ -168,7 +168,7 @@ if ($perm['manager_view']) {
|
||||
?>
|
||||
|
||||
<?php if ($perm['content'] || $perm['manager_view']) : ?>
|
||||
<div>
|
||||
<div class="copy-button-container">
|
||||
<?php UOJSubmission::cur()->echoContent() ?>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user