|
@@ -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']];
|