From 06be1c7ccc7533612e4cc7b0e730080d0dd3d2a1 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Fri, 16 Jan 2026 11:43:36 +0800
Subject: [PATCH] 商品可以赠送优惠券 商品属性增加团购 入驻商家增加实物和团购选项 团购和实物商户分类分开 增加团购商家页面 后台添加页面增加团购组件

---
 admin/app/api/service/coupon/ProductDeductService.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/admin/app/api/service/coupon/ProductDeductService.php b/admin/app/api/service/coupon/ProductDeductService.php
index 35bf0d4..3fa93e8 100644
--- a/admin/app/api/service/coupon/ProductDeductService.php
+++ b/admin/app/api/service/coupon/ProductDeductService.php
@@ -65,7 +65,7 @@
     private function getProductListWeight($productList, $orderTotalPrice)
     {
         foreach ($productList as &$product) {
-            $product['weight'] = $product[$this->price_column] / $orderTotalPrice;
+            $product['weight'] = bcdiv($product[$this->price_column], $orderTotalPrice, 6);
         }
         return $this->arraySortByWeight($productList);
     }

--
Gitblit v1.9.2