...
|
...
|
@@ -260,7 +260,7 @@ class Topic extends Api |
|
|
->order(['hot_num'=>'desc'])
|
|
|
->paginate($page_num,false,['page'=>$page])
|
|
|
->each(function($v){
|
|
|
$v->visible(['id','title','content','createtime','agree_num','download_num','user']);
|
|
|
$v->visible(['id','title','cover','content','createtime','agree_num','download_num','user']);
|
|
|
// 发布时间格式化
|
|
|
$v->createtime = date('Y.m.d H:i',$v->createtime);
|
|
|
// 过滤标签
|
...
|
...
|
|