Ken 1 viikko sitten
vanhempi
commit
b020323e1f
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 3
      app/Http/Controllers/admin/Bet.php

+ 1 - 3
app/Http/Controllers/admin/Bet.php

@@ -32,9 +32,7 @@ class Bet extends Controller
                         if ($startTime) {
                         if ($startTime) {
                             $start = Carbon::parse($startTime);
                             $start = Carbon::parse($startTime);
                             $end = Carbon::parse($value);
                             $end = Carbon::parse($value);
-                            if ($end->diffInDays($start) > 30) {
-                                $fail('最大查找时间跨度:30天');
-                            }
+                            if ($end->diffInDays($start) > 30) $fail('最大查找时间跨度:30天');
                         }
                         }
                     }],
                     }],
                 'is_winner' => ['nullable', 'integer', 'in:0,1'],
                 'is_winner' => ['nullable', 'integer', 'in:0,1'],