From 9246eba4b2cd2ff187917ec4e8172d09a8586acd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Mon, 20 Feb 2023 15:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E7=BB=9F=E8=AE=A1=E7=99=BE?= =?UTF-8?q?=E5=88=86=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../services/activity/integral/StorePointRecordServices.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crmeb/app/services/activity/integral/StorePointRecordServices.php b/crmeb/app/services/activity/integral/StorePointRecordServices.php index 7b60ef76b..900cde292 100644 --- a/crmeb/app/services/activity/integral/StorePointRecordServices.php +++ b/crmeb/app/services/activity/integral/StorePointRecordServices.php @@ -190,7 +190,7 @@ class StorePointRecordServices extends BaseServices $list[] = [ 'name' => $item['name'], 'value' => $item['value'], - 'percent' => $count != 0 ? bcmul((string)bcdiv((string)$item['value'], (string)$count, 4), '100', 1) : 0, + 'percent' => $count != 0 ? bcmul((string)bcdiv((string)$item['value'], (string)$count, 4), '100', 2) : 0, ]; } array_multisort(array_column($list, 'value'), SORT_DESC, $list); @@ -222,7 +222,7 @@ class StorePointRecordServices extends BaseServices $list[] = [ 'name' => $item['name'], 'value' => $item['value'], - 'percent' => $count != 0 ? bcmul((string)bcdiv((string)$item['value'], (string)$count, 4), '100', 1) : 0, + 'percent' => $count != 0 ? bcmul((string)bcdiv((string)$item['value'], (string)$count, 4), '100', 2) : 0, ]; } array_multisort(array_column($list, 'value'), SORT_DESC, $list);