pull/5/head
wanghousheng 5 months ago
parent 8cb2d0bba2
commit 2e37f8e94e
  1. 7
      app/api/controller/Invite.php

@ -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();

Loading…
Cancel
Save