From 226a98d9f02c53d7fbb704567398c57669e46f8b Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 16:18:02 +0800 Subject: [PATCH] fix bug --- app/controller/Article.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controller/Article.php b/app/controller/Article.php index b0b8408..d46bd90 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -88,7 +88,8 @@ class Article ->limit(env("page_count")) ->select(); foreach($lists as $vo){ - $vo['imgs'] = json_decode($vo['imgs'],true); + + $vo['imgs'] = json_decode(str_replace(['{','}'],['[',']'],$vo['imgs']),true); $info['other_list'][] = $vo; } $info['userinfo']=[];