fix bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user