From 6fe4da0596273d25f2a86098a1d723bf379aaa37 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 16:23:45 +0800 Subject: [PATCH] fix bug --- app/controller/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/Article.php b/app/controller/Article.php index de79bc7..a9df8e1 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -81,7 +81,7 @@ class Article $info = Db::name('app_article')->where("id",$article_id)->find(); if(empty($info)) return show("找不到该动态信息!"); if(!empty($info['imgs'])) { - $info['imgs'] = json_decode(str_replace(['{', '}'], ['[', ']'], imgs['imgs']), true); + $info['imgs'] = json_decode(str_replace(['{', '}'], ['[', ']'], $info['imgs']), true); } $info['other_list'] = []; $lists = Db::name('app_article')