perf(modal): unify cancellable frontend modal flows

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-05 02:04:55 +08:00
co-authored by Claude Fable 5
parent 25ce1d8f43
commit 5375ad6429
36 changed files with 2623 additions and 1806 deletions
+4 -1
View File
@@ -534,7 +534,10 @@ trait VipServicePackages {
private function format_cash_label(float $amount): string {
$symbol = '¥';
if (class_exists('\AKSRT\Settings\Settings')) {
if (method_exists($this, 'get_paid_display_context')) {
$paid = $this->get_paid_display_context();
$symbol = (string) ($paid['display']['currency_symbol'] ?? '¥');
} elseif (class_exists('\AKSRT\Settings\Settings')) {
$paid = \AKSRT\Settings\Settings::get_paid_content_settings();
$symbol = (string) ($paid['display']['currency_symbol'] ?? '¥');
}