From 2e37f8e94ed4e03f26fae272eb8c5d4b22db69bc Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Wed, 17 Jul 2024 10:20:37 +0800 Subject: [PATCH] 1 --- app/api/controller/Invite.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/api/controller/Invite.php b/app/api/controller/Invite.php index 0de296b0..069ac86d 100644 --- a/app/api/controller/Invite.php +++ b/app/api/controller/Invite.php @@ -107,13 +107,6 @@ class Invite extends Controller ->order('id desc') ->paginate(15); $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['adoption_num'] = $applyModel->whereIn('user_id', $user_ids)->where(['status' => WholesalerEnum::ADOPT])->count();