This commit is contained in:
zhao 2020-02-17 17:56:05 +08:00
parent 6b8e119f88
commit a3d3e2bba3
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ function getCateName($cate_ename)
//过滤文章摘要 //过滤文章摘要
function getArtContent($content) function getArtContent($content)
{ {
return mb_substr(strip_tags($content),0,50).'更多详情...'; return mb_substr(strip_tags($content),0,100).'...';
} }

View File

@ -175,7 +175,7 @@ class Article extends BaseController
return View::fetch(); return View::fetch();
} }
/添加tag //添加tag
public function tags(){ public function tags(){
$data = Request::only(['tags']); $data = Request::only(['tags']);
$att = explode(',',$data['tags']); $att = explode(',',$data['tags']);