Browse Source

fix(feedback): 修复反馈回复查询条件语法错误

- 修正了数据库查询中 where 条件的语法格式
- 将错误的数组格式 ['uid', '>', 0] 改为正确的字符串格式 'uid', '>', 0
- 确保能够正确查询到用户回复记录
shichen 4 months ago
parent
commit
2926dd8724
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 50
         foreach ($list as &$item) {
51 51
             $isReply = Db::name('feedback_reply')
52 52
                 ->where(['feedback_id' => $item['feedback_id']])
53
-                ->where(['uid', '>', 0])
53
+                ->where('uid', '>', 0)
54 54
                 ->find();
55 55
             if (!$isReply) {
56 56
                 $item['userReply'] = 0;