Skip to content

Commit

Permalink
fix: 修复流量明细显示所有记录的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
xboard committed Oct 7, 2024
1 parent 2f29c5f commit af1f1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/V1/User/StatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit af1f1e9

Please sign in to comment.