mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-28 06:47:24 +08:00
fix: 修复流量明细显示所有记录的BUG
This commit is contained in:
@@ -13,7 +13,7 @@ class StatController extends Controller
|
|||||||
{
|
{
|
||||||
public function getTrafficLog(Request $request)
|
public function getTrafficLog(Request $request)
|
||||||
{
|
{
|
||||||
$startDate = now()->startOfMonth();
|
$startDate = now()->startOfMonth()->timestamp;
|
||||||
$records = StatUser::query()
|
$records = StatUser::query()
|
||||||
->where('user_id', $request->user['id'])
|
->where('user_id', $request->user['id'])
|
||||||
->where('record_at', '>=', $startDate)
|
->where('record_at', '>=', $startDate)
|
||||||
|
|||||||
Reference in New Issue
Block a user