修改添加用户渠道获取

This commit is contained in:
2020-08-24 10:15:54 +08:00
parent e114200ea7
commit a7be2b7c7e
2 changed files with 4 additions and 1 deletions

View File

@@ -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>&nbsp;&nbsp;'; ->sum('profit') . '元</label>&nbsp;&nbsp;';
}); });
$grid->disableExport(false); $grid->disableExport(false);
$grid->export(function ($export) { $grid->export(function ($export) {

View File

@@ -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 [