修复文档模型栏目无法选择的bug,记录用户操作行为

This commit is contained in:
2020-04-27 18:57:43 +08:00
parent 484f2f0e13
commit 2482e6f304
3 changed files with 74 additions and 42 deletions

View File

@@ -8,6 +8,7 @@
// +----------------------------------------------------------------------
namespace app\http\middleware;
use app\model\MemberLog;
use think\facade\Session;
/**
@@ -17,14 +18,15 @@ class Admin {
public function handle($request, \Closure $next) {
$request->rootUid = env('rootuid');
$request->user = Session::get('userInfo');
$request->user = Session::get('adminInfo');
$request->url = str_replace(".", "/", strtolower($request->controller())) . '/' . $request->action();
$request->pageConfig = array(
'list_rows' => $request->param('limit', 20),
'page' => $request->param('page', 1),
'query' => $request->param()
'query' => $request->param(),
);
MemberLog::record($request);
$response = $next($request);
return $response;