소스 검색

order process fix

Tokumeikoi 4 년 전
부모
커밋
25d4c5b31d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Services/OrderService.php

+ 1 - 1
app/Services/OrderService.php

@@ -131,7 +131,7 @@ class OrderService
         $totalValue = 0;
         $totalMonth = 0;
         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;
             if ($surplusMonth) {
                 $totalMonth = $totalMonth + $surplusMonth;