- 移除了 feedback_reply 表中 content 和 reply_time 字段的查询 - 优化了数据库查询性能,只保留必要的 admin_read 条件判断 - 简化了用户反馈回复状态的逻辑处理
@@ -51,7 +51,6 @@ class FeedbackRepository extends BaseRepository
$userReply = Db::name('feedback_reply')
->where(['feedback_id' => $item['feedback_id']])
->where(['admin_read' => 0])
- ->field('content,reply_time')
->find();
$item['userReply'] = $userReply ? 1 : 0;
}