diff --git a/web/app/controllers/problem_statement_manage.php b/web/app/controllers/problem_statement_manage.php index 59f4f9e..0bdc09b 100644 --- a/web/app/controllers/problem_statement_manage.php +++ b/web/app/controllers/problem_statement_manage.php @@ -109,6 +109,10 @@ if (UOJProblem::info('type') == 'remote') { UOJResponse::page500('题目抓取失败,可能是题目不存在或者没有题面!如果题目没有问题,请稍后再试。返回'); } + if ($data['difficulty'] == -1) { + $data['difficulty'] = UOJProblem::info('difficulty'); + } + $submission_requirement = [ [ "name" => "answer",