mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 02:28:41 +00:00
feat(problem/remote): keep local difficulty when no remote difficulty is given
This commit is contained in:
parent
af80a6831b
commit
e768c0ea05
@ -109,6 +109,10 @@ if (UOJProblem::info('type') == 'remote') {
|
||||
UOJResponse::page500('题目抓取失败,可能是题目不存在或者没有题面!如果题目没有问题,请稍后再试。<a href="">返回</a>');
|
||||
}
|
||||
|
||||
if ($data['difficulty'] == -1) {
|
||||
$data['difficulty'] = UOJProblem::info('difficulty');
|
||||
}
|
||||
|
||||
$submission_requirement = [
|
||||
[
|
||||
"name" => "answer",
|
||||
|
Loading…
Reference in New Issue
Block a user