@@ -6,9 +6,9 @@ class AppBootHook {
async didReady() {
// 应用已经启动完毕
- const ctx = await this.app.createAnonymousContext();
+ // const ctx = await this.app.createAnonymousContext();
// 企业入驻申请消息接收事件
- await ctx.service.rabbitmq.receiveQueueMsg('public_chat');
+ // await ctx.service.rabbitmq.receiveQueueMsg('public_chat');
}
async serverDidReady() {
@@ -29,7 +29,7 @@ module.exports = {
options: {
query: ["skip", "limit"],
sort: ["meta.createdAt"],
- asc: true,
+ desc: true,
count: true,
},
@@ -25,7 +25,7 @@ class ChatService extends CrudService {
headers: {
userid: 1,
} };
- await mq.topic(exchange, '1', content, parm);
+ await mq.topic(exchange, '1', res.data, parm);
return res;