This commit is contained in:
Tokumeikoi 2020-05-28 23:28:58 +08:00
parent a6bcc3f153
commit f667f5ee41

View File

@ -127,7 +127,7 @@ class OrderService
->where('status', 3); ->where('status', 3);
$surplusAmount = 0; $surplusAmount = 0;
foreach ($orderModel->get() as $item) { 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; if (!$surplusMonth) continue;
$surplusMonth = ($surplusMonth - time()) / 2678400 / $strToMonth[$item->cycle]; $surplusMonth = ($surplusMonth - time()) / 2678400 / $strToMonth[$item->cycle];
if ($surplusMonth > 0) { if ($surplusMonth > 0) {