liuyu 4 年之前
父節點
當前提交
92ae0d1e3d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/chat.js

+ 1 - 1
app/service/chat.js

@@ -30,7 +30,7 @@ class ChatService extends CrudService {
         headers: {
           userid: sendid,
         } };
-      await mq.fanout(exchange, roomid, JSON.stringify(res), parm);
+      await mq.topic(exchange, roomid, JSON.stringify(res), parm);
     }
     return res;
   }