改进 交易记录筛选方式

This commit is contained in:
iVampireSP.com 2023-01-21 22:50:25 +08:00
parent 925ec29b1b
commit ee365e83b1
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -256,7 +256,7 @@ function transactions(
$modules = Module::all();
$transactions = (new Transaction)->where('user_id', auth()->id());
$transactions = (new Transaction)->where('user_id', auth('web')->id())->where('payment', '!=', 'module_balance');
if ($request->has('type')) {
$transactions = $transactions->where('type', $request->type);