登录处理

This commit is contained in:
2025-08-12 11:16:48 +08:00
parent 06c5df0207
commit f9d9a1bf5c
2 changed files with 5 additions and 6 deletions

View File

@@ -20,7 +20,6 @@ class BaseCom extends Controller
header("Access-Control-Max-Age: 3600");
//检测系统是否维护中
// $config = get_system_config();
$is_maintenance = get_system_config_value('is_maintenance');
if($is_maintenance == 2){
return V(203, '系统维护中');
@@ -42,9 +41,9 @@ class BaseCom extends Controller
//定义一个常量
define('UID', $this->uid);
}else{
$token = input('token', '');
$token = request()->header('token');
if (empty($token)) {
$token = request()->header('token');
$token = input('token', '');
if(empty($token)){
return V(301, '登录失效');
}