formatted(); $recharge = class_exists('\AKSRT\Settings\Settings') && method_exists('\AKSRT\Settings\Settings', 'get_payment_recharge_settings') ? \AKSRT\Settings\Settings::get_payment_recharge_settings() : []; $uid = (int) ($user_id ?? get_current_user_id()); $transfer_on = !empty($recharge['transfer']['enabled']); if ($transfer_on && class_exists('\AKSRT\Settings\Capabilities') && !\AKSRT\Settings\Capabilities::user_can('balance_transfer', $uid)) { $transfer_on = false; } $all_settings = class_exists('\AKSRT\Settings\Settings') ? \AKSRT\Settings\Settings::get_all() : []; $withdraw_on = !empty($all_settings['pay_balance_withdraw_s']); if ($withdraw_on && class_exists('\AKSRT\Settings\Capabilities') && !\AKSRT\Settings\Capabilities::user_can('balance_withdraw', $uid)) { $withdraw_on = false; } $withdraw_settings = class_exists('\\AKSRT\\Settings\\Settings') ? \AKSRT\Settings\Settings::get_withdrawal_settings() : []; $withdraw_min = $normalize_balance($withdraw_settings['min_amount'] ?? '50')->decimal(); $withdraw_usage = ['remaining_count' => 0, 'remaining_amount' => '0.00']; $withdraw_pending_hold = '0.00'; $withdraw_history = []; if ($withdraw_on && class_exists('\AKSRT\Payment\Withdrawal')) { $wd_svc = \AKSRT\Payment\Withdrawal::get_instance(); $withdraw_pending_hold = $wd_svc->sum_pending_hold((int) ($user_id ?? 0)); $withdraw_history = $wd_svc->get_user_withdrawals((int) ($user_id ?? 0), ['limit' => 30]); $withdraw_usage = $wd_svc->daily_usage((int) ($user_id ?? 0), $withdraw_settings); } $withdraw_processing = $normalize_balance($withdraw_pending_hold)->minor() > 0; $card_pass_balance = ['enabled' => false, 'desc' => '', 'only_password' => true]; if (class_exists('\AKSRT\Payment\ChargeCard')) { $opts = \AKSRT\Payment\ChargeCard::get_instance()->get_public_options(); $card_pass_balance = is_array($opts['balance'] ?? null) ? $opts['balance'] : $card_pass_balance; } elseif (!empty($recharge['pass_charge'])) { $card_pass_balance = is_array($recharge['pass_charge']) ? $recharge['pass_charge'] : $card_pass_balance; } $charge_view = []; if (class_exists('\AKSRT\Credits\BalanceService')) { $charge_view = \AKSRT\Credits\BalanceService::get_instance()->get_charge_view((int) $user_id); } $packages = is_array($charge_view['packages'] ?? null) ? $charge_view['packages'] : []; $methods = is_array($charge_view['payment_methods'] ?? null) ? $charge_view['payment_methods'] : []; $custom_s = !empty($charge_view['custom_s']); $custom_limit = (int) ($charge_view['custom_limit'] ?? 9999); $mark = (string) ($charge_view['currency_mark'] ?? '元'); ?>
formatted())); ?>

__('待处理', 'aksrt'), 'processing' => __('处理中', 'aksrt'), 'completed' => __('已完成', 'aksrt'), 'rejected' => __('已拒绝', 'aksrt'), ]; ?>

history(['user_id' => (int) $user_id, 'asset' => 'balance', 'page' => $wallet_page, 'per_page' => 10]); if (!empty($wlog['items'])) : ?>
= 0 ? 'is-positive' : 'is-negative'; $delta_txt = ($delta > 0 ? '+' : '-') . \AKSRT\Ledger\AssetAmount::from_minor(\AKSRT\Ledger\AssetType::BALANCE, abs($delta))->formatted(); $record_note = in_array((string) $row['reason'], ['withdraw_hold', 'withdraw_refund'], true) ? (string) ($row['withdrawal_number'] ?? '') : (string) ($row['remark'] ?? ''); ?>
()
formatted()) ); ?>
1 && function_exists('aksrt_render_profile_pagination')) { aksrt_render_profile_pagination($total_pages, $wallet_page, 'wallet_page'); } ?>