Skip to content

Commit

Permalink
add buy fail cache
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Nov 29, 2024
1 parent ff0caa1 commit 9afc3bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/announce.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@
//disable download
(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);
}
if ($buyStatus == \App\Repositories\TorrentRepository::BUY_STATUS_UNKNOWN) {
Expand Down

0 comments on commit 9afc3bd

Please sign in to comment.