pull/5/head
wanghousheng 6 months ago
parent b0fe4fb369
commit af81ad83fd
  1. 7
      app/api/controller/Invite.php
  2. 1
      app/api/model/wholesaler/Apply.php

@ -107,6 +107,13 @@ class Invite extends Controller
->paginate(15);
$data['list'] = $list->items();
$data['total'] = $list->total();
if ($data['total'] > 0) {
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['adoption_num'] = $applyModel->whereIn('user_id', $user_ids)->where(['status' => WholesalerEnum::ADOPT])->count();
//审核拒绝

@ -13,7 +13,6 @@ class Apply extends \app\common\model\wholesaler\Apply
* @var array
*/
protected $hidden = [
'create_time',
'update_time',
'store_id',
'id',

Loading…
Cancel
Save