From 580281d6b95483f2e699f15f24f9afb4c6033a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Fri, 5 Sep 2025 16:33:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=9D=E9=A2=98=E5=88=97=E8=A1=A8=20?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Topic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/model/Topic.php b/application/api/model/Topic.php index cce1b47..a29677b 100644 --- a/application/api/model/Topic.php +++ b/application/api/model/Topic.php @@ -44,7 +44,7 @@ class Topic extends Model if($list){ foreach ($list as &$item){ $item['content'] = $this->where(['id'=>$item['topic_id']])->value('content'); - $item['pic'] = $this->where(['id'=>$item['topic_id']])->value('pic'); + $item['pic'] = $this->where(['id'=>$item['topic_id']])->value('pic') ?? get_system_config_value('web_site').'/data/avatar/head_pic.png';; $item['title'] = $this->where(['id'=>$item['topic_id']])->value('title'); } }