mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix
This commit is contained in:
parent
a6bcc3f153
commit
f667f5ee41
@ -127,7 +127,7 @@ class OrderService
|
||||
->where('status', 3);
|
||||
$surplusAmount = 0;
|
||||
foreach ($orderModel->get() as $item) {
|
||||
$surplusMonth = strtotime("+ {$strToMonth[$item->cycle]}month", $item->updated_at->format('U'));
|
||||
$surplusMonth = strtotime("+ {$strToMonth[$item->cycle]}month", $item->created_at->format('U'));
|
||||
if (!$surplusMonth) continue;
|
||||
$surplusMonth = ($surplusMonth - time()) / 2678400 / $strToMonth[$item->cycle];
|
||||
if ($surplusMonth > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user