|
|
@ -107,13 +107,6 @@ class Invite extends Controller |
|
|
|
->order('id desc') |
|
|
|
->order('id desc') |
|
|
|
->paginate(15); |
|
|
|
->paginate(15); |
|
|
|
$data['list'] = $list->items(); |
|
|
|
$data['list'] = $list->items(); |
|
|
|
if (!empty($data['list'])) { |
|
|
|
|
|
|
|
foreach ($data['list'] as $key => $item) { |
|
|
|
|
|
|
|
if (!empty($item->create_time)) { |
|
|
|
|
|
|
|
$data['list'][$key]->create_time = date('Y-m-d H:i:s', $item->create_time); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$data['total'] = $list->total(); |
|
|
|
$data['total'] = $list->total(); |
|
|
|
//审核通过 |
|
|
|
//审核通过 |
|
|
|
$data['adoption_num'] = $applyModel->whereIn('user_id', $user_ids)->where(['status' => WholesalerEnum::ADOPT])->count(); |
|
|
|
$data['adoption_num'] = $applyModel->whereIn('user_id', $user_ids)->where(['status' => WholesalerEnum::ADOPT])->count(); |
|
|
|