Преглед на файлове

fix(feedback): 修复用户回复状态判断逻辑

- 修正了非回复状态下 userReply 字段赋值为 1 的逻辑错误
- 确保反馈列表中用户回复状态显示正确
shichen преди 4 месеца
родител
ревизия
3326c1d85c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/common/repositories/user/FeedbackRepository.php

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

@@ -53,7 +53,7 @@ class FeedbackRepository extends BaseRepository
53 53
                 ->where('uid', '>', 0)
54 54
                 ->find();
55 55
             if (!$isReply) {
56
-                $item['userReply'] = 0;
56
+                $item['userReply'] = 1;
57 57
             }else{
58 58
                 $userReply = Db::name('feedback_reply')
59 59
                     ->where(['feedback_id' => $item['feedback_id']])