改进 交易记录筛选方式
This commit is contained in:
parent
925ec29b1b
commit
ee365e83b1
@ -256,7 +256,7 @@ function transactions(
|
|||||||
|
|
||||||
$modules = Module::all();
|
$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')) {
|
if ($request->has('type')) {
|
||||||
$transactions = $transactions->where('type', $request->type);
|
$transactions = $transactions->where('type', $request->type);
|
||||||
|
Loading…
Reference in New Issue
Block a user