diff --git a/app/controller/Article.php b/app/controller/Article.php index 4e31001..9d92f48 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -80,6 +80,14 @@ class Article $article_id = $GLOBALS['data']['data']['article_id']; $info = Db::name('app_article')->where("id",$article_id)->find(); if(empty($info)) return show("找不到该动态信息!"); + + $lists = Db::name('app_article') + ->where("userid",$info["userid"]) + ->where("id","<>",$info['id']) + ->order("id desc") + ->limit(env("page_count")) + ->select(); + $info['other_list'] = $lists; return show(SUCCESS_MESSAGE,SUCCESS_CODE,$info); }