home.js 397 B

1234567891011121314151617181920
  1. 'use strict';
  2. const Controller = require('egg').Controller;
  3. const _ = require('lodash');
  4. class HomeController extends Controller {
  5. async index() {
  6. const { ctx } = this;
  7. ctx.body = 'hi, egg';
  8. }
  9. async util() {
  10. // const data = await this.ctx.service.wx.updateCache();
  11. console.log(this.app.config.canUseMongoDb);
  12. this.ctx.ok({ });
  13. }
  14. }
  15. module.exports = HomeController;