From 7cdf9fef70f4944e0306cc4330766441a01cb0d1 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 17:25:38 +0800 Subject: [PATCH] fix bug --- app/controller/Article.php | 1 + 1 file changed, 1 insertion(+) 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;