From 34083441d414a44a9dfd06fb6289de0a37f184e4 Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Sun, 28 Sep 2025 16:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=86=85=E5=AE=B9=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=B4=A0=E6=9D=90=E6=97=A0=E6=B3=95=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/application/chukebao/controller/ContentController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/application/chukebao/controller/ContentController.php b/Server/application/chukebao/controller/ContentController.php index 73b24679..dce4eecd 100644 --- a/Server/application/chukebao/controller/ContentController.php +++ b/Server/application/chukebao/controller/ContentController.php @@ -64,7 +64,7 @@ class ContentController extends BaseController } $newContent = []; foreach ($content as $k => $v){ - if (in_array($v,['text','image','video','audio','file','link'])){ + if (in_array($v['type'],['text','image','video','audio','file','link'])){ $newContent[] = $v; } } @@ -159,7 +159,7 @@ class ContentController extends BaseController } $newContent = []; foreach ($content as $k => $v){ - if (in_array($v,['text','image','video','audio','file','link'])){ + if (in_array($v['type'],['text','image','video','audio','file','link'])){ $newContent[] = $v; } }