feat(pay): enforce VIP free-download daily quota like zibll

This commit is contained in:
kate522 committed 2026-07-14 01:03:03 +08:00
1 parent 7cce3ff275
commit 8b50687e9d
4 files changed
+199 -4

No files matched your search

@@ -171,6 +171,14 @@ class AKSRT_Content_Visibility {
]);
}
// Zibll daily free-download quota.
if ($cost <= 0 && function_exists('aksrt_check_free_download_quota')) {
$quota = aksrt_check_free_download_quota($uid, $cost);
if (is_wp_error($quota)) {
return $quota;
}
}
if (!empty($paid_settings['download_credit']) && $cost > 0) {
$balance = class_exists('AKSRT_Credits') ? AKSRT_Credits::balance($uid) : 0;
if ($balance < $cost) {