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')