Ken hai 1 semana
pai
achega
7e5e12383b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/Http/Controllers/admin/Home.php

+ 2 - 0
app/Http/Controllers/admin/Home.php

@@ -8,6 +8,7 @@ use App\Models\PaymentOrder;
 use App\Services\PaymentOrderService;
 use Illuminate\Validation\ValidationException;
 use Exception;
+use Carbon\Carbon;
 
 class Home extends Controller
 {
@@ -21,6 +22,7 @@ class Home extends Controller
             ]);
             $start = request()->input('start_date', date('Y-m-d'));
             $end = request()->input('end_date', date('Y-m-d'));
+            $end = Carbon::createFromFormat('Y-m-d', $end)->addDay();
             $query = PaymentOrder::query();
             $params['type'] = 2;
             $where = PaymentOrderService::getWhere($params);