mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
order process fix
This commit is contained in:
parent
aaad8a7f7e
commit
25d4c5b31d
@ -131,7 +131,7 @@ class OrderService
|
|||||||
$totalValue = 0;
|
$totalValue = 0;
|
||||||
$totalMonth = 0;
|
$totalMonth = 0;
|
||||||
foreach ($orderModel->get() as $item) {
|
foreach ($orderModel->get() as $item) {
|
||||||
$surplusMonth = strtotime("+ {$strToMonth[$item->cycle]}month", $item['updated_at']);
|
$surplusMonth = strtotime("+ {$strToMonth[$item->cycle]}month", $item->updated_at->format('U'));
|
||||||
$surplusMonth = ($surplusMonth - time()) / 2678400;
|
$surplusMonth = ($surplusMonth - time()) / 2678400;
|
||||||
if ($surplusMonth) {
|
if ($surplusMonth) {
|
||||||
$totalMonth = $totalMonth + $surplusMonth;
|
$totalMonth = $totalMonth + $surplusMonth;
|
||||||
|
Loading…
Reference in New Issue
Block a user