'use strict'; class AppBootHook { constructor(app) { this.app = app; } async serverDidReady() { // 应用已经启动完毕 const ctx = await this.app.createAnonymousContext(); // 检查种子 // await ctx.service.install.index(); await ctx.service.util.rabbitMq.mission(); } } module.exports = AppBootHook;