app.js 358 B

12345678910111213141516
  1. 'use strict';
  2. class AppBootHook {
  3. constructor(app) {
  4. this.app = app;
  5. }
  6. async serverDidReady() {
  7. // 应用已经启动完毕
  8. const ctx = await this.app.createAnonymousContext();
  9. // 检查种子
  10. // await ctx.service.install.index();
  11. await ctx.service.util.rabbitMq.mission();
  12. }
  13. }
  14. module.exports = AppBootHook;