From 567ce7a3e84ad5a53ebd6ff8859e35b1bbe9de52 Mon Sep 17 00:00:00 2001 From: gitea Date: Mon, 14 Nov 2022 11:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'app/Http/Controllers/Char?= =?UTF-8?q?tController.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/ChartController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ChartController.php b/app/Http/Controllers/ChartController.php index f1f7587..cdd60d4 100644 --- a/app/Http/Controllers/ChartController.php +++ b/app/Http/Controllers/ChartController.php @@ -87,7 +87,7 @@ class ChartController extends Controller $riceShrimpIndustry = $riceShrimpIndustries[$key] ?? null; if ($riceShrimpIndustry) { - $areas[] = $riceShrimpIndustry->area; + $areas[] = bcdiv($riceShrimpIndustry->area, 1000, 2); $productOutputs[] = bcdiv($riceShrimpIndustry->product_output, 2000, 2); $productValues[] = bcdiv($riceShrimpIndustry->product_value, 10000, 2);; } else { @@ -105,7 +105,7 @@ class ChartController extends Controller 'data' => $productValues, ], [ - 'name' => '面积(亩)', + 'name' => '面积(千亩)', 'data' => $areas, ], [