Skip to content

Commit 9012482

Browse files
author
zhangjiangbin
committed
修正当前在线数量不准确问题
1 parent 098a608 commit 9012482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/AdminController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function __construct()
4646
public function index(Request $request)
4747
{
4848
$past = strtotime(date('Y-m-d', strtotime("-" . self::$config['expire_days'] . " days")));
49-
$online = time() - 120;
49+
$online = time() - 600;
5050

5151
$view['userCount'] = User::query()->count();
5252
$view['activeUserCount'] = User::query()->where('t', '>=', $past)->count();

0 commit comments

Comments
 (0)