fix(vip): allow points renewal for existing members

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-09 16:40:27 +08:00
co-authored by Claude Fable 5
parent df858d04dc
commit ba5638a892
2 changed files with 24 additions and 9 deletions
@@ -145,10 +145,10 @@ foreach ([1, 2] as $lv) {
$cards .= '</div></div>';
}
// Points exchange entry (non-VIP only).
// Points exchange entry (available for guests, ordinary users, and VIP renewals/upgrades).
$points_html = '';
$points_pkgs = is_array($points_exchange['packages'] ?? null) ? $points_exchange['packages'] : [];
if ($level <= 0 && !empty($points_exchange['enabled']) && $points_pkgs !== []) {
if (!empty($points_exchange['enabled']) && $points_pkgs !== []) {
$points_html = '<div class="uc-vip-points-link" data-aksrt-vip-points-modal>'
. '<div class="uc-vip-points-link__icon" aria-hidden="true"><i class="fas fa-coins"></i></div>'
. '<div class="uc-vip-points-link__body">'