Преглед изворни кода

refactor(feedback): 移除不必要的字段查询

- 移除了 feedback_reply 表中 content 和 reply_time 字段的查询
- 优化了数据库查询性能,只保留必要的 admin_read 条件判断
- 简化了用户反馈回复状态的逻辑处理
shichen пре 4 месеци
родитељ
комит
79dc572492
1 измењених фајлова са 0 додато и 1 уклоњено
  1. 0 1
      app/common/repositories/user/FeedbackRepository.php

+ 0 - 1
app/common/repositories/user/FeedbackRepository.php

@@ -51,7 +51,6 @@ class FeedbackRepository extends BaseRepository
51 51
             $userReply = Db::name('feedback_reply')
52 52
                 ->where(['feedback_id' => $item['feedback_id']])
53 53
                 ->where(['admin_read' => 0])
54
-                ->field('content,reply_time')
55 54
                 ->find();
56 55
             $item['userReply'] = $userReply ? 1 : 0;
57 56
         }