修改添加用户渠道获取
This commit is contained in:
@@ -126,6 +126,9 @@ class IndexController extends AdminController
|
|||||||
. '<label class="label label-success">打款金额:' . $pass->where('is_profit', 1)
|
. '<label class="label label-success">打款金额:' . $pass->where('is_profit', 1)
|
||||||
->sum('profit') . '元</label> ';
|
->sum('profit') . '元</label> ';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$grid->disableExport(false);
|
$grid->disableExport(false);
|
||||||
|
|
||||||
$grid->export(function ($export) {
|
$grid->export(function ($export) {
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ class IndexController extends AdminController
|
|||||||
|
|
||||||
$users = User::whereHas('identity', function ($query) {
|
$users = User::whereHas('identity', function ($query) {
|
||||||
$query->where('identity_id', 1);
|
$query->where('identity_id', 1);
|
||||||
})->where('type', $type)->get();
|
})->get();
|
||||||
|
|
||||||
$userRet = $users->map(function ($code) {
|
$userRet = $users->map(function ($code) {
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user