|
@@ -62,9 +62,7 @@ class UserAccessLog extends UserAccessLogModel
|
|
|
|
|
|
public static function getAccessLogDistinctIps($from, $to)
|
|
|
{
|
|
|
- $res[$item] = self::where('create_time', '>=', $from)->where('create_time', '<=', $to)->count('distinct ip');
|
|
|
-
|
|
|
- return $res;
|
|
|
+ return self::where('create_time', '>=', $from)->where('create_time', '<=', $to)->count('distinct ip');
|
|
|
}
|
|
|
|
|
|
}
|