作者 何书鹏

bug修改

... ... @@ -164,6 +164,7 @@ class Company extends Api
{
"id": 1, //申请ID
"name": "何先生", //申请人名称
"mobile": "15133120361", //申请人电话
"createtime": "2020.09.12" //申请时间
}
]
... ... @@ -180,7 +181,7 @@ class Company extends Api
->paginate($page_num,false,['page'=>$page])
->each(function($v){
$v['createtime'] = date('Y.m.d',$v['createtime']);
$v->visible(['id','name','createtime']);
$v->visible(['id','name','mobile','createtime']);
})->toArray();
$this->success('成功',['total'=>$data['total'],'list'=>$data['data']]);
}
... ...