1234567891011121314151617181920 |
- 'use strict';
- const Controller = require('egg').Controller;
- const _ = require('lodash');
- class HomeController extends Controller {
- async index() {
- const { ctx } = this;
- ctx.body = 'hi, egg';
- }
- async util() {
- // const data = await this.ctx.service.wx.updateCache();
- console.log(this.app.config.canUseMongoDb);
- this.ctx.ok({ });
- }
- }
- module.exports = HomeController;
|