Skip to content

Commit

Permalink
Merge pull request #52 from Ginakira/develop
Browse files Browse the repository at this point in the history
[Fix] 提交次数统计由网站后台完成(原为判题核心统计提交)
  • Loading branch information
Ginakira authored Jul 8, 2020
2 parents 8ec3339 + f0b3ab0 commit 6c0e486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@
$sql =
"INSERT INTO `custominput`(`solution_id`,`input_text`)VALUES(?,?)";
pdo_query($sql, $insert_id, $input_text);
} else {
$sql = "update problem set submit=submit+1 where problem_id=?";
pdo_query($sql, $id);
}
$sql = "update solution set result=0 where solution_id=?";
pdo_query($sql, $insert_id);
Expand Down
2 changes: 1 addition & 1 deletion template/jmsu/oj-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<img src='image/logo-jmsu.png' class="img-fluid" style="transform: scale(0.6);" alt='JMSU-ACM logo'>
</div>
<div class="col-lg-6 small">
<span class="text-muted">JMSU Online Judge V2.0.3 build200608</span><br>
<span class="text-muted">JMSU Online Judge V2.0.4 build200708</span><br>
<span class="text-muted">开发/维护:<a href='https://github.com/Ginakira/JMSUOJ'>AutoWA Team</a></span>
<span class="text-muted">基于开源项目HUSTOJ</span><br>
<span class="text-muted">Copyright © 2019-<?php echo date("Y") ?> AutoWA Team All Rights Reserved.</span><br>
Expand Down

0 comments on commit 6c0e486

Please sign in to comment.