pull/5/head
wanghousheng 6 months ago
parent bac59a8e0f
commit 8cb2d0bba2
  1. 6
      app/api/controller/Invite.php

@ -108,8 +108,10 @@ class Invite extends Controller
->paginate(15); ->paginate(15);
$data['list'] = $list->items(); $data['list'] = $list->items();
if (!empty($data['list'])) { if (!empty($data['list'])) {
foreach ($data['list'] as &$item) { foreach ($data['list'] as $key => $item) {
$item['create_time'] = date('Y-m-d H:i:s', $item['create_time']); 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();

Loading…
Cancel
Save