leiyun 3 дней назад
Родитель
Сommit
85c7c13ae4
1 измененных файлов: 3 добавлений и 0 удалений
  1. +3
    -0
      src/controller/base.js

+ 3
- 0
src/controller/base.js Просмотреть файл

@@ -18,6 +18,9 @@ const WHITE_LIST = [


module.exports = class extends think.Controller { module.exports = class extends think.Controller {
async __before() { async __before() {
console.log('[TEST-CONSOLE] base __before 被调用, path:', this.ctx.path);
think.logger.info('[TEST-LOGGER] base __before 被调用, path:', this.ctx.path);

const path = this.ctx.path; const path = this.ctx.path;


// 白名单放行(同时匹配带.html后缀的路径) // 白名单放行(同时匹配带.html后缀的路径)


Загрузка…
Отмена
Сохранить