|
@@ -369,8 +369,8 @@ class GoodsService extends BaseService
|
|
|
|
|
|
|
|
// 会员折扣
|
|
// 会员折扣
|
|
|
$orderTotal = $result['order_total'];
|
|
$orderTotal = $result['order_total'];
|
|
|
- if($discountPoint>0 && $discountPoint<1){
|
|
|
|
|
- $result['order_total'] = moneyFormat((1-$discountPoint) * $result['order_total'],2);
|
|
|
|
|
|
|
+ if($discountPoint>0 && $discountPoint<10){
|
|
|
|
|
+ $result['order_total'] = moneyFormat( $result['order_total']*$discountPoint/10,2);
|
|
|
$result['discount_total'] = moneyFormat($orderTotal - $result['order_total'],2);
|
|
$result['discount_total'] = moneyFormat($orderTotal - $result['order_total'],2);
|
|
|
}
|
|
}
|
|
|
|
|
|