From eb6a7827fdaabd3fa46313b6712fdd05efe77413 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 16:54:06 +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 b827c2c..ed88185 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -22,7 +22,7 @@ class Article Db::name("app_article")->insert([ "text"=>$post['content'], - "imgs"=>$post['imgs'], + "imgs"=>json_encode($post['imgs']), "userid"=>$userid, "createtime"=>time(), "click"=>0