add buy fail cache

This commit is contained in:
xiaomlove
2024-11-29 20:29:06 +08:00
parent ff0caa1cf4
commit 9afc3bdeb4
+2
View File
@@ -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) {