Skip to content

Commit

Permalink
fix: 结束后不检测作弊
Browse files Browse the repository at this point in the history
  • Loading branch information
kengwang committed Oct 8, 2024
1 parent 4be0ea8 commit 76feddd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/GZCTF/Services/FlagChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ await eventRepository.AddEvent(

await eventRepository.AddEvent(
GameEvent.FromSubmission(item, type, ans, Program.StaticLocalizer), token);


if (!item.GameChallenge.CanSubmit)
break;

CheatCheckInfo result = await instanceRepository.CheckCheat(item, token);
ans = result.AnswerResult;

Expand Down

0 comments on commit 76feddd

Please sign in to comment.