fix(user-center): 防止大额资产金额断行
This commit is contained in:
@@ -56,6 +56,11 @@ if (!function_exists('wp_is_uuid')) {
|
||||
return $version === null || strtolower($matches[1]) === strtolower((string) $version);
|
||||
}
|
||||
}
|
||||
if (!function_exists('number_format_i18n')) {
|
||||
function number_format_i18n($number): string {
|
||||
return number_format((float) $number);
|
||||
}
|
||||
}
|
||||
if (!class_exists('WP_Error')) {
|
||||
class WP_Error {
|
||||
public function __construct(private string $code, private string $message = '', private $data = null) {}
|
||||
|
||||
Reference in New Issue
Block a user