mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
add buy fail cache
This commit is contained in:
@@ -469,6 +469,8 @@ if (!isset($self))
|
|||||||
//disable download
|
//disable download
|
||||||
(new \App\Repositories\UserRepository())->updateDownloadPrivileges(null, $userid, 'no', 'announce_paid_torrent_too_many_times');
|
(new \App\Repositories\UserRepository())->updateDownloadPrivileges(null, $userid, 'no', 'announce_paid_torrent_too_many_times');
|
||||||
}
|
}
|
||||||
|
//already fail, add fail times
|
||||||
|
$torrentRep->addBuyFailCache($userid, $torrentid);
|
||||||
warn("purchase fail, please try again later, please make sure you have enough bonus", 300);
|
warn("purchase fail, please try again later, please make sure you have enough bonus", 300);
|
||||||
}
|
}
|
||||||
if ($buyStatus == \App\Repositories\TorrentRepository::BUY_STATUS_UNKNOWN) {
|
if ($buyStatus == \App\Repositories\TorrentRepository::BUY_STATUS_UNKNOWN) {
|
||||||
|
|||||||
Reference in New Issue
Block a user