diff --git a/app/middleware/LoginCookie.php b/app/middleware/LoginCookie.php index 654b956..31dfc52 100644 --- a/app/middleware/LoginCookie.php +++ b/app/middleware/LoginCookie.php @@ -4,6 +4,7 @@ namespace app\middleware; use think\facade\Session; use think\facade\Cookie; use think\facade\Db; +use think\facade\Config; class LoginCookie { @@ -18,7 +19,7 @@ class LoginCookie $user = Db::name('user')->where('id',$userId)->find(); if($user){ //验证cookie - $salt = 'taoler'; + $salt = Config::get('taoler.salt'); $auth = md5($user['name'].$salt).":".$userId; if($auth==$cooAuth){ Session::set('user_name',$user['name']); diff --git a/config/taoler.php b/config/taoler.php index 5f616b4..dd39b68 100644 --- a/config/taoler.php +++ b/config/taoler.php @@ -5,6 +5,6 @@ return [ //版本配置 - 'version' => '1.6.3', + 'version' => '1.6.4', 'salt' => 'taoler' ]; \ No newline at end of file