|
|
@@ -38,6 +38,7 @@ class Article extends WapBasic {
|
|
|
public function visit($id = '')
|
|
|
{
|
|
|
$content = ArticleModel::where('status',1)->where('hide',0)->where('id',$id)->order('id desc')->find();
|
|
|
+
|
|
|
if(!$content || !$content["status"]) return $this->failed('此文章已经不存在!');
|
|
|
$content["content"] = Db::name('articleContent')->where('nid',$content["id"])->value('content');
|
|
|
//增加浏览次数
|