From 5ad82a4864a58a6de2ec797a8a1fb0989fc9e097 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 18 Feb 2025 13:04:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E9=87=91=E9=A2=9D=E4=B8=8D=E5=8F=AF=E7=94=A8=E5=B0=8F?= =?UTF-8?q?=E6=95=B0=E7=82=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/UserCouponService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/UserCouponService.php b/app/Services/UserCouponService.php index 9a74aea..754de13 100644 --- a/app/Services/UserCouponService.php +++ b/app/Services/UserCouponService.php @@ -84,11 +84,11 @@ class UserCouponService extends BaseService /** * 获取可用优惠卷总金额 * @param array $coupons 优惠卷数据 - * @return int + * @return string */ - public function getCouponTotalPrice(array $coupons): int + public function getCouponTotalPrice(array $coupons): string { - $coupon_total_price = 0; + $coupon_total_price = "0"; foreach ($coupons as $coupon){ $coupon_total_price = bcadd($coupon_total_price,$coupon['coupon_price'],2);