|
|
@@ -105,6 +105,7 @@ class PurchaseClass extends BaseClass
|
|
|
$cg->actPrice = $currentPrice;
|
|
|
$cg->realPrice = $currentPrice;
|
|
|
$cg->stockChange = 1;
|
|
|
+ $cg->status = self::STATUS_COMPLETE;
|
|
|
$cg->save();
|
|
|
|
|
|
$mainId = $cg->mainId ?? 0;
|
|
|
@@ -293,9 +294,9 @@ class PurchaseClass extends BaseClass
|
|
|
$currentProduct = $productData[$productId] ?? [];
|
|
|
$price = ProductClass::getFinalPrice($currentProduct, $giveLevel, $priceMap, $addPriceMap, $changePrice);
|
|
|
|
|
|
- if($currentSmallNum > 0){
|
|
|
+ if ($currentSmallNum > 0) {
|
|
|
$productTotalPrice = bcmul($currentSmallNum, $price, 2);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$productTotalPrice = bcmul($currentBigNum, $price, 2);
|
|
|
}
|
|
|
|