From 3955c08005300483160d6aa5311a9b61a6804004 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 17:15:40 +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 866c25a..33804fb 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -96,6 +96,7 @@ class Article $vo['imgs'] = json_decode(str_replace(['{', '}'], ['[', ']'], $vo['imgs']), true); $vo['imgs']= $vo['imgs'][0]; } + if(empty($vo['imgs'])) $vo['imgs'] = ""; $info['other_list'][] = $vo; } $info['userinfo']=[];