Browse Source

update fix

ssvfdn 3 months ago
parent
commit
5e90b0767c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/controller/PlayerControl.php

+ 2 - 2
app/controller/PlayerControl.php

@@ -204,8 +204,8 @@ class PlayerControl extends BaseController
         }
 
         if(!empty($filters['start_time']) && !empty($filters['end_time'])) {
-            $controlWhere[] = ['update_time', '>=', $filters['start_time']];
-            $controlWhere[] = ['update_time', '<=', $filters['end_time']];
+            $controlWhere[] = ['update_time', '>=', strtotime($filters['start_time'] . " 00:00:00")];
+            $controlWhere[] = ['update_time', '<=', strtotime($filters['end_time'] . " 23:59:59")];
         }
 
         $controlWhere[] = ['status', '=', 1];