From 3935c8827b7469081054f09422dd896d2f63e104 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Mon, 10 Apr 2023 20:35:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=AE=A1=E7=AE=97=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E4=B8=BAfloor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/DoctorAccountService.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Services/DoctorAccountService.php b/app/Services/DoctorAccountService.php index b3adecb..b340746 100644 --- a/app/Services/DoctorAccountService.php +++ b/app/Services/DoctorAccountService.php @@ -70,9 +70,9 @@ class DoctorAccountService extends BaseService } $result = array(); - $result['balance_account'] = floor($balance_account * 0.75 * 100) / 100;; // 账户余额 - $result['amount_total_month'] = floor($amount_total_month * 0.75 * 100) / 100; // 月余额 - $result['withdrawal_amount_month'] = floor($withdrawal_amount_month * 0.75 * 100) / 100; // 月已提现金额 + $result['balance_account'] = floor($balance_account * 100) / 100;; // 账户余额 + $result['amount_total_month'] = floor($amount_total_month * 100) / 100; // 月余额 + $result['withdrawal_amount_month'] = floor($withdrawal_amount_month * 100) / 100; // 月已提现金额 $result['bill'] = $bill; // 账单 return success($result); @@ -123,7 +123,7 @@ class DoctorAccountService extends BaseService $order_inquiry = OrderInquiry:: getDoctorDateOrderInquiryPage($params, $reception_time, $fields,$page,$per_page); if (!empty($order_inquiry['data'])) { foreach ($order_inquiry['data'] as &$item) { - $item['amount_total'] = ceil($item['total_amount'] * 0.75 * 100) / 100; + $item['amount_total'] = floor($item['total_amount'] * 0.75 * 100) / 100; } } @@ -264,7 +264,7 @@ class DoctorAccountService extends BaseService $order_inquiry = OrderInquiry:: getDoctorOrderInquiryPage($params, $fields,$page,$per_page); if (!empty($order_inquiry['data'])) { foreach ($order_inquiry['data'] as &$item) { - $item['expected_amount_total'] = ceil($item['amount_total'] * 0.75 * 100) / 100; + $item['expected_amount_total'] = floor($item['amount_total'] * 0.75 * 100) / 100; } }