diff --git a/app/controller/Article.php b/app/controller/Article.php index 33804fb..44791c7 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -99,6 +99,7 @@ class Article if(empty($vo['imgs'])) $vo['imgs'] = ""; $info['other_list'][] = $vo; } + if(!empty($info['other_list'])) shuffle($info['other_list']); $info['userinfo']=[]; $userinfo = Db::name("student")->where("id",$info['userid'])->field("nickname,avatar,age,type,disabled as is_disabled,city,school,hot")->find(); $info['userinfo'] = $userinfo;