话题列表 图片

This commit is contained in:
2025-09-05 16:33:33 +08:00
parent 886a0263d8
commit 580281d6b9

View File

@@ -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');
}
}