fix: 修复流量明细显示所有记录的BUG

This commit is contained in:
xboard committed 2024-10-07 09:55:19 +08:00
1 parent 67eb96a235
commit 3cfc5fc6c2
1 file changed
+1 -1
@@ -13,7 +13,7 @@ class StatController extends Controller
{
public function getTrafficLog(Request $request)
{
$startDate = now()->startOfMonth();
$startDate = now()->startOfMonth()->timestamp;
$records = StatUser::query()
->where('user_id', $request->user['id'])
->where('record_at', '>=', $startDate)