[更新]同步Framework代码

This commit is contained in:
Anyon 2019-04-08 18:03:11 +08:00
parent 7d5b6fa3ea
commit a5ba65d9c9
2 changed files with 10 additions and 5 deletions

View File

@ -38,10 +38,13 @@ class Config extends Controller
public function info()
{
$this->applyCsrfToken();
$this->title = '系统参数配置';
if ($this->request->isGet()) return $this->fetch();
foreach ($this->request->post() as $k => $v) sysconf($k, $v);
$this->success('系统参数配置成功!');
if ($this->request->isGet()) {
$this->title = '系统参数配置';
$this->fetch();
} else {
foreach ($this->request->post() as $k => $v) sysconf($k, $v);
$this->success('系统参数配置成功!');
}
}
/**

View File

@ -16,6 +16,7 @@ namespace app\admin\controller;
use library\Controller;
use think\Db;
use think\Session;
/**
* 用户登录管理
@ -97,7 +98,8 @@ class Login extends Controller
*/
public function out()
{
[session_unset(), session_destroy()];
\think\facade\Session::clear();
\think\facade\Session::destroy();
$this->success('退出登录成功!', url('@admin/login'));
}