作者 lyh

gx

@@ -37,6 +37,7 @@ class LoginAuthMiddleware @@ -37,6 +37,7 @@ class LoginAuthMiddleware
37 } 37 }
38 // 设置数据库 38 // 设置数据库
39 $project = ProjectServer::useProject($info['project_id']); 39 $project = ProjectServer::useProject($info['project_id']);
  40 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($project, true) . PHP_EOL, FILE_APPEND);
40 if(empty($project)){ 41 if(empty($project)){
41 return response(['code'=>Code::USER_LOGIN_ERROE,'msg'=>'数据库未配置']); 42 return response(['code'=>Code::USER_LOGIN_ERROE,'msg'=>'数据库未配置']);
42 } 43 }