调整提现列表

This commit is contained in:
luofei 2023-07-24 17:13:49 +08:00
parent f75fb7cedb
commit 67cfa69d6e
2 changed files with 6 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class WithdrawController extends BaseAdminController
{
[$page, $limit] = $this->getPage();
$status = $this->request->param('status');
$query = Withdraw::where('status', '<>', -1);
$query = Withdraw::with('user');
if ($status !== '') {
$query->where('status', $status);
}

View File

@ -12,5 +12,10 @@ class Withdraw extends Model
return 'TX' . date('YmdHis') . rand(10000, 99999);
}
public function user()
{
return $this->belongsTo(User::class, 'user_id', 'id')->bind(['account', 'nickname', 'avatar']);
}
}