调整提现列表
This commit is contained in:
parent
f75fb7cedb
commit
67cfa69d6e
app
@ -12,7 +12,7 @@ class WithdrawController extends BaseAdminController
|
|||||||
{
|
{
|
||||||
[$page, $limit] = $this->getPage();
|
[$page, $limit] = $this->getPage();
|
||||||
$status = $this->request->param('status');
|
$status = $this->request->param('status');
|
||||||
$query = Withdraw::where('status', '<>', -1);
|
$query = Withdraw::with('user');
|
||||||
if ($status !== '') {
|
if ($status !== '') {
|
||||||
$query->where('status', $status);
|
$query->where('status', $status);
|
||||||
}
|
}
|
||||||
|
@ -12,5 +12,10 @@ class Withdraw extends Model
|
|||||||
return 'TX' . date('YmdHis') . rand(10000, 99999);
|
return 'TX' . date('YmdHis') . rand(10000, 99999);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function user()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(User::class, 'user_id', 'id')->bind(['account', 'nickname', 'avatar']);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user