diff --git a/app/common.php b/app/common.php index 569941f..41ad68b 100644 --- a/app/common.php +++ b/app/common.php @@ -82,7 +82,7 @@ function getCateName($cate_ename) //过滤文章摘要 function getArtContent($content) { - return mb_substr(strip_tags($content),0,50).'更多详情...'; + return mb_substr(strip_tags($content),0,100).'...'; } diff --git a/app/index/controller/Article.php b/app/index/controller/Article.php index 9510a59..bf4e6cc 100644 --- a/app/index/controller/Article.php +++ b/app/index/controller/Article.php @@ -175,7 +175,7 @@ class Article extends BaseController return View::fetch(); } - /添加tag + //添加tag public function tags(){ $data = Request::only(['tags']); $att = explode(',',$data['tags']);