shish 6 лет назад
Родитель
Сommit
b929ffa4d6
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      biz/order/services/OrderService.php

+ 2 - 2
biz/order/services/OrderService.php

@@ -194,12 +194,12 @@ class OrderService extends BaseService
 		if (isset($asset['member']) && $asset['member'] > 0) {
 			$currentDiscount = $asset['discount'];
 			$currentPrice = $price * $currentDiscount;
-			$newPrice = substr(sprintf("%.3f", $currentPrice), 0, -2);
+			$newPrice = substr(sprintf("%.3f", $currentPrice), 0, -1);
 			$discountType = 2;
 			$discountAmount = stringUtil::calcSub($price, $newPrice);
 			$discountPrice = $newPrice;
 		}
-		
+
 		//使用随机优惠 shish 2019.9.12
 		if ($sourceType == 3) {
 			$discountAmount = OrderClass::getRandDiscount($price);