瀏覽代碼

课题分类

LiuJ 3 天之前
父節點
當前提交
402cfd3aca
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/JsonRpc/ChatService.php

+ 2 - 0
app/JsonRpc/ChatService.php

@@ -819,8 +819,10 @@ class ChatService implements ChatServiceInterface
         $result = ChatTopic::where($where)
             ->leftJoin('user', 'user.id', '=', 'chat_topics.user_id')
             ->leftJoin('chat_topics_reply', 'chat_topics.id', '=', 'chat_topics_reply.topic_id')
+            ->leftJoin('chat_topic_class', 'chat_topics.type', '=', 'chat_topic_class.id')
             ->select(
                 'chat_topics.*',
+                'chat_topic_class.topicname as type_name',
                 'user.nickname',
                 'user.avatar',
                 'user.user_name',