mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-19 08:10:49 +08:00
fix exam checmout error when when user not exists
This commit is contained in:
@@ -136,7 +136,8 @@ class HitAndRunRepository extends BaseRepository
|
||||
$currentLog = "$logPrefix, [HANDLING] " . $row->toJson();
|
||||
do_log($logPrefix);
|
||||
if (!$row->user) {
|
||||
do_log("$currentLog, user not exists, skip!", 'error');
|
||||
do_log("$currentLog, user not exists, remove it!", 'error');
|
||||
$row->delete();
|
||||
continue;
|
||||
}
|
||||
if (!$row->snatch) {
|
||||
@@ -144,7 +145,8 @@ class HitAndRunRepository extends BaseRepository
|
||||
continue;
|
||||
}
|
||||
if (!$row->torrent) {
|
||||
do_log("$currentLog, torrent not exists, skip!", 'error');
|
||||
do_log("$currentLog, torrent not exists, remove it!", 'error');
|
||||
$row->delete();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user