|
|
@@ -379,6 +379,8 @@ class InitController extends Controller
|
|
|
if (empty($orderSn)) {
|
|
|
continue;
|
|
|
}
|
|
|
+ $order->orderPrice = bcadd($order->prePrice, $order->discountAmount, 2);
|
|
|
+ $order->save();
|
|
|
$orderItemList = OrderItemClass::getAllByCondition(['orderSn' => $orderSn], null, '*', null, true);
|
|
|
if (!empty($orderItemList)) {
|
|
|
foreach ($orderItemList as $orderItem) {
|
|
|
@@ -427,6 +429,8 @@ class InitController extends Controller
|
|
|
if (empty($orderSn)) {
|
|
|
continue;
|
|
|
}
|
|
|
+ $cg->orderPrice = bcsub($cg->prePrice, $cg->discountAmount, 2);
|
|
|
+ $cg->save();
|
|
|
$cgItemList = PurchaseItemClass::getAllByCondition(['orderSn' => $orderSn], null, '*', null, true);
|
|
|
if (!empty($cgItemList)) {
|
|
|
foreach ($cgItemList as $cgItem) {
|