自动查重

This commit is contained in:
wangjinlei
2026-05-18 18:34:48 +08:00
parent f99dbc6397
commit 53e6ddbd9e
7 changed files with 105 additions and 44 deletions

View File

@@ -23,15 +23,16 @@ class PlagiarismPoll
public function fire(Job $job, $data)
{
$checkId = isset($data['check_id']) ? intval($data['check_id']) : 0;
$attempt = isset($data['attempt']) ? intval($data['attempt']) : 1;
if ($checkId <= 0) {
$job->delete();
return;
}
// $checkId = isset($data['check_id']) ? intval($data['check_id']) : 0;
// $attempt = isset($data['attempt']) ? intval($data['attempt']) : 1;
//
// if ($checkId <= 0) {
// $job->delete();
// return;
// }
$svc = new PlagiarismService();
$svc->runPollStatus($checkId, $attempt);
$svc->log("PlagiarismPoll job is running");
// $svc->runPollStatus($checkId, $attempt);
$job->delete();
}
}