fix a bug

This commit is contained in:
Wisp X 2022-03-13 03:15:39 +08:00
parent 69209f75d3
commit 87f7c500c1

View File

@ -120,7 +120,7 @@ class Utils
* @param int $precision 精度
* @return int
*/
public static function shortenNumber(int|string $n, int $precision = 1): int
public static function shortenNumber(int|string $n, int $precision = 1): int|string
{
if ($n < 1e+3) {
return number_format($n);