mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]同步Framework代码
This commit is contained in:
parent
7d5b6fa3ea
commit
a5ba65d9c9
@ -38,10 +38,13 @@ class Config extends Controller
|
|||||||
public function info()
|
public function info()
|
||||||
{
|
{
|
||||||
$this->applyCsrfToken();
|
$this->applyCsrfToken();
|
||||||
$this->title = '系统参数配置';
|
if ($this->request->isGet()) {
|
||||||
if ($this->request->isGet()) return $this->fetch();
|
$this->title = '系统参数配置';
|
||||||
foreach ($this->request->post() as $k => $v) sysconf($k, $v);
|
$this->fetch();
|
||||||
$this->success('系统参数配置成功!');
|
} else {
|
||||||
|
foreach ($this->request->post() as $k => $v) sysconf($k, $v);
|
||||||
|
$this->success('系统参数配置成功!');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,6 +16,7 @@ namespace app\admin\controller;
|
|||||||
|
|
||||||
use library\Controller;
|
use library\Controller;
|
||||||
use think\Db;
|
use think\Db;
|
||||||
|
use think\Session;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户登录管理
|
* 用户登录管理
|
||||||
@ -97,7 +98,8 @@ class Login extends Controller
|
|||||||
*/
|
*/
|
||||||
public function out()
|
public function out()
|
||||||
{
|
{
|
||||||
[session_unset(), session_destroy()];
|
\think\facade\Session::clear();
|
||||||
|
\think\facade\Session::destroy();
|
||||||
$this->success('退出登录成功!', url('@admin/login'));
|
$this->success('退出登录成功!', url('@admin/login'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user