Forráskód Böngészése

Merge branch '20241106_lj_chat'

AI 3 hónapja
szülő
commit
3f6dda2888
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      app/JsonRpc/ChatService.php

+ 3 - 2
app/JsonRpc/ChatService.php

@@ -769,8 +769,9 @@ class ChatService implements ChatServiceInterface
         if (!empty($data['title'])) {
             $where[] = ['chat_topics.title', 'like', '%' . $data['title'] . '%'];
         }
-        if (!empty($data['user_id'])) {
-            $where[] = ['chat_topics.user_id', '=', $data['user_id']];
+        // 不是看自己的话题
+        if (!empty($data['user_id_search'])) {
+            $where[] = ['chat_topics.user_id', '=', $data['user_id_search']];
         }
         if (!empty($data['status'])) {
             $where[] = ['chat_topics.status', '=', $data['status']];