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

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

- 将查询条件中的 'user_id' 字段更正为 'uid'
- 确保反馈回复状态判断逻辑正常工作
shichen пре 4 месеци
родитељ
комит
600944151d
1 измењених фајлова са 1 додато и 1 уклоњено
  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(['user_id', '>', 0])
53
+                ->where(['uid', '>', 0])
54 54
                 ->find();
55 55
             if (!$isReply) {
56 56
                 $item['userReply'] = 0;