mirror of
https://github.com/v2board/v2board.git
synced 2025-02-11 16:00:27 +08:00
fix: order surplus issue
This commit is contained in:
parent
c8f1a23358
commit
644aedb999
@ -136,10 +136,7 @@ class OrderService
|
|||||||
foreach ($orders as $k => $item) {
|
foreach ($orders as $k => $item) {
|
||||||
// 兼容历史余留问题
|
// 兼容历史余留问题
|
||||||
if ($item->cycle === 'onetime_price') continue;
|
if ($item->cycle === 'onetime_price') continue;
|
||||||
if ($this->orderIsUsed($item)) {
|
if ($this->orderIsUsed($item)) continue;
|
||||||
unset($orders[$k]);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$orderSurplusMonth = $orderSurplusMonth + self::STRTOTIME[$item->cycle];
|
$orderSurplusMonth = $orderSurplusMonth + self::STRTOTIME[$item->cycle];
|
||||||
$orderSurplusAmount = $orderSurplusAmount + ($item['total_amount'] + $item['balance_amount']);
|
$orderSurplusAmount = $orderSurplusAmount + ($item['total_amount'] + $item['balance_amount']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user