wesmiler 3 лет назад
Родитель
Сommit
885c52bcb4
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      source/application/api/service/order/Checkout.php

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

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