Skip to content

Commit 5063d08

Browse files
authored
Update login-hustoj.php
1 parent 0ea97f8 commit 5063d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trunk/web/include/login-hustoj.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function check_login($user_id,$password){
3131
}
3232
if(isset($OJ_EXAM_CONTEST_ID)&&intval($OJ_EXAM_CONTEST_ID)>0){ //考试模式
3333
$ccid=$OJ_EXAM_CONTEST_ID;
34-
$sql="select min(start_time) from contest where start_time<=now() and end_time>=now() and contest_id>=?";
34+
$sql="select min(start_time - INTERVAL 30 MINUTE) from contest where start_time<=now() and end_time>=now() and contest_id>=?";
3535
$rows=pdo_query($sql,$ccid);
3636
$start_time=$rows[0][0];
3737
$sql="select ip from loginlog where user_id=? and time>? order by time desc limit 1";

0 commit comments

Comments
 (0)