log.php 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // |
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-08-30 14:41
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. //@操作日志
  13. Route::group('log', function () {
  14. //@日志列表
  15. Route::rule('list', 'log/list');
  16. //@删除日志
  17. Route::post('del','log/del');
  18. //@删除一个月之前
  19. Route::post('delMonth','log/delMonth');
  20. //@登录日志列表
  21. Route::rule('listLoginLog', 'log/listLoginLog');
  22. //@删除一个月之前登录日志
  23. Route::post('delMonthLoginLog','log/delMonthLoginLog');
  24. })->middleware([
  25. \app\system\middleware\AllowOriginMiddleware::class,
  26. \app\system\middleware\AdminAuthTokenMiddleware::class,
  27. \app\system\middleware\AdminCkeckRoleMiddleware::class
  28. ]);