wesmiler 3 سال پیش
والد
کامیت
8b42fb2ef4
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      source/application/api/service/order/Checkout.php

+ 2 - 2
source/application/api/service/order/Checkout.php

@@ -429,10 +429,10 @@ class Checkout
         // 商品总价 - 优惠抵扣
         foreach ($this->goodsList as &$goods) {
             // 减去优惠券抵扣金额
-            $value = helper::bcsub($goods['total_price'], $goods['coupon_money'],8);
+            $value = helper::bcsub($goods['total_price'], $goods['coupon_money'],6);
             // 减去积分抵扣金额
             if ($this->orderData['is_allow_points'] && $this->orderData['is_use_points']) {
-                $value = helper::bcsub($value, $goods['points_money'],8);
+                $value = helper::bcsub($value, $goods['points_money'],6);
             }
             $goods['total_pay_price'] = helper::number2($value);
         }