mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update telegram
This commit is contained in:
parent
12db88b998
commit
c648308634
@ -128,6 +128,7 @@ class OrderService
|
|||||||
$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->updated_at->format('U'));
|
||||||
|
if (!$surplusMonth) continue;
|
||||||
$surplusMonth = ($surplusMonth - time()) / 2678400 / $strToMonth[$item->cycle];
|
$surplusMonth = ($surplusMonth - time()) / 2678400 / $strToMonth[$item->cycle];
|
||||||
if ($surplusMonth > 0) {
|
if ($surplusMonth > 0) {
|
||||||
$surplusAmount = $surplusAmount + ($item['total_amount'] + $item['balance_amount']) * $surplusMonth;
|
$surplusAmount = $surplusAmount + ($item['total_amount'] + $item['balance_amount']) * $surplusMonth;
|
||||||
|
Loading…
Reference in New Issue
Block a user