Răsfoiți Sursa

我的优惠券列表-订单可用优惠券

whitefang 1 an în urmă
părinte
comite
3d5c708ff0
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      app/api/logic/ServiceOrderLogic.php

+ 2 - 2
app/api/logic/ServiceOrderLogic.php

@@ -111,7 +111,7 @@ class ServiceOrderLogic extends BaseLogic
                     if($user_coupon['discount_ratio']>=1){
                     if($user_coupon['discount_ratio']>=1){
                         throw new Exception('优惠券有误,请联系客服');
                         throw new Exception('优惠券有误,请联系客服');
                     }
                     }
-                    $order_coupon_amount = intval($order_amount*(1-$user_coupon['discount_ratio']));
+                    $order_coupon_amount = $order_amount*(1-$user_coupon['discount_ratio']);
                 }else{
                 }else{
                     $order_coupon_amount = $user_coupon['amount'];
                     $order_coupon_amount = $user_coupon['amount'];
                 }
                 }
@@ -268,7 +268,7 @@ class ServiceOrderLogic extends BaseLogic
                     if($user_coupon['discount_ratio']>=1){
                     if($user_coupon['discount_ratio']>=1){
                         throw new Exception('优惠券有误,请联系客服');
                         throw new Exception('优惠券有误,请联系客服');
                     }
                     }
-                    $order_coupon_amount = intval($order['order_amount']*(1-$user_coupon['discount_ratio']));
+                    $order_coupon_amount = $order['order_amount']*(1-$user_coupon['discount_ratio']);
                 }else{
                 }else{
                     $order_coupon_amount = $user_coupon['amount'];
                     $order_coupon_amount = $user_coupon['amount'];
                 }
                 }