decimal(); } catch (\InvalidArgumentException $e) { $withdraw_min = '0.00'; } $withdraw_usage = is_array($withdraw_usage ?? null) ? $withdraw_usage : ['remaining_count' => 0, 'remaining_amount' => '0.00']; $withdraw_fee_rate = (int) ($withdraw_settings['service_charge_rate'] ?? 5); // 渠道由后台「提现策略 → 收款渠道」的拖拽结构定义,可自定义名称与提示。 $withdraw_channels = array_values(array_filter( (array) ($withdraw_settings['payout_channels'] ?? []), static fn ($channel): bool => is_array($channel) && !empty($channel['enabled']) && (string) ($channel['key'] ?? '') !== '' )); ?>