0, 'total_earned' => 0, 'total_withdrawn' => 0, 'records' => []]; $balance = (float) ($revenue_view['balance'] ?? 0); $total_earned = (float) ($revenue_view['total_earned'] ?? 0); $total_withdrawn = (float) ($revenue_view['total_withdrawn'] ?? 0); $records = $revenue_view['records'] ?? []; $settings = class_exists('\AKSRT\Settings\Settings') ? \AKSRT\Settings\Settings::get_withdrawal_settings() : []; $min_amount = (float) ($settings['min_amount'] ?? 50); $fee_rate = (float) ($settings['service_charge_rate'] ?? 0); $withdraw_text = (string) ($settings['text'] ?? ''); $withdrawals = []; if (class_exists('\AKSRT\Payment\Withdrawal')) { $withdrawals = \AKSRT\Payment\Withdrawal::get_instance()->get_user_withdrawals($user_id, ['limit' => 20]); } $per_page = 20; $paged = max(1, (int) ($_GET['rev_page'] ?? 1)); $total_records = count($records); $total_pages = max(1, (int) ceil(max(1, $total_records) / $per_page)); if ($total_records === 0) { $total_pages = 1; } $paged_records = array_slice($records, ($paged - 1) * $per_page, $per_page); ?>
__('创作收益', 'aksrt'), 'subtitle' => __('查看分成明细并发起提现。', 'aksrt'), 'active' => 'revenue', ]); } else { echo '

' . esc_html__('创作收益', 'aksrt') . '

'; echo '

' . esc_html__('查看分成明细并发起提现。', 'aksrt') . '

'; } ?>
¥
¥
¥

¥

¥
1 && $total_records > 0) : ?>