Browse Source

fix(feedback): 修复反馈回复查询中的字段名错误

- 将查询条件中的 'user_id' 字段更正为 'uid'
- 确保反馈回复状态判断逻辑正常工作
shichen 4 months ago
parent
commit
600944151d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/common/repositories/user/FeedbackRepository.php

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

@@ -50,7 +50,7 @@ class FeedbackRepository extends BaseRepository
50
         foreach ($list as &$item) {
50
         foreach ($list as &$item) {
51
             $isReply = Db::name('feedback_reply')
51
             $isReply = Db::name('feedback_reply')
52
                 ->where(['feedback_id' => $item['feedback_id']])
52
                 ->where(['feedback_id' => $item['feedback_id']])
53
-                ->where(['user_id', '>', 0])
53
+                ->where(['uid', '>', 0])
54
                 ->find();
54
                 ->find();
55
             if (!$isReply) {
55
             if (!$isReply) {
56
                 $item['userReply'] = 0;
56
                 $item['userReply'] = 0;