更新文件
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
namespace app\controller\admin;
|
||||
|
||||
use app\controller\Admin;
|
||||
use think\facade\Session;
|
||||
|
||||
/**
|
||||
* @title 后端公共模块
|
||||
@@ -24,6 +25,8 @@ class Index extends Admin{
|
||||
|
||||
public function login(){
|
||||
if ($this->request->isAjax()) {
|
||||
Session::set('user', ['uid'=>1,'username'=>'admin']);
|
||||
|
||||
return $this->data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user