From 8afd208cbd7948627045592d173d8d580cfb572b Mon Sep 17 00:00:00 2001 From: weizong song Date: Fri, 14 May 2021 20:52:39 +0800 Subject: [PATCH] up --- app/Http/Controllers/Manager/StatisticsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Manager/StatisticsController.php b/app/Http/Controllers/Manager/StatisticsController.php index 5ad026d..80d7980 100644 --- a/app/Http/Controllers/Manager/StatisticsController.php +++ b/app/Http/Controllers/Manager/StatisticsController.php @@ -244,6 +244,7 @@ class StatisticsController extends CommonController $recharge["total_online"] = collect($recharge_by_payment)->filter(function ($item) use ($payment_online_methods) { return in_array($item["payment"], array_keys($payment_online_methods)); })->sum("total"); + $val = intval($recharge["total_online"] * 100) / 100; foreach ($payment_methods as $k => $v) { $val = isset($recharge_by_payment[$k]) ? $recharge_by_payment[$k]["total"] : 0;