quanwei
2025-12-31 48d31672b4d88900080093cd1632f9d2eb978d4d
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);
    }