diff --git a/app/Models/Transaction.php b/app/Models/Transaction.php index af66427..66aad03 100644 --- a/app/Models/Transaction.php +++ b/app/Models/Transaction.php @@ -83,6 +83,9 @@ public function getDrops($user_id = null) 'drops' => 0, ]); + // 保留 5 位 + $drops['drops'] = round($drops['drops'], 5); + return $drops['drops']; }