后台使用默认货币

This commit is contained in:
Edward Yang 2022-08-26 11:48:35 +08:00
parent 52fd9ce208
commit d7deeb62df
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ function locale(): string
function currency_format($price, string $currency = '', string $value = '', bool $format = true): string function currency_format($price, string $currency = '', string $value = '', bool $format = true): string
{ {
if (!$currency) { if (!$currency) {
$currency = current_currency_code(); $currency = is_admin() ? system_setting('base.currency') : current_currency_code();
} }
return CurrencyService::getInstance()->format($price, $currency, $value, $format); return CurrencyService::getInstance()->format($price, $currency, $value, $format);
} }