Browse Source

update fix

ssvfdn 3 tháng trước cách đây
mục cha
commit
5e90b0767c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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];