From 91149c9bc28c8e516bb386716fcad38b12ee543d Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 17:13:54 +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 ed88185..866c25a 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -94,6 +94,7 @@ class Article foreach($lists as $vo){ if(!empty($vo['imgs'])) { $vo['imgs'] = json_decode(str_replace(['{', '}'], ['[', ']'], $vo['imgs']), true); + $vo['imgs']= $vo['imgs'][0]; } $info['other_list'][] = $vo; }