This commit is contained in:
knowpia
2022-09-13 16:23:45 +08:00
parent a7b64a810e
commit 6fe4da0596

View File

@@ -81,7 +81,7 @@ class Article
$info = Db::name('app_article')->where("id",$article_id)->find(); $info = Db::name('app_article')->where("id",$article_id)->find();
if(empty($info)) return show("找不到该动态信息!"); if(empty($info)) return show("找不到该动态信息!");
if(!empty($info['imgs'])) { 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'] = []; $info['other_list'] = [];
$lists = Db::name('app_article') $lists = Db::name('app_article')