[8] ErrorException in Index.php line 99

未定义数组下标: 1

  1. public function logout()
  2. {
  3. Session::delete('user');
  4. (new Base())->checkSession();
  5. }
  6. public function article()
  7. {
  8. $page_arrays = explode("_", input('id'));
  9. $id = $page_arrays[1];
  10. $res = Db::table('details')->find($id);
  11. $homecustom = db('homecustom')->select();
  12. foreach ($homecustom as $key => $value) {
  13. $homecustom[$value['mark']] = $value['val'];
  14. }
  15. $website = db('website')->find();
  16. if (empty($res)) {

Call Stack

  1. in Index.php line 99
  2. at Error::appError(8, 'Undefined offset: 1', '/www/wwwroot/web/www...', 99, ['page_arrays' => ['6']]) in Index.php line 99
  3. at Index->article()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => '6', 'convert' => false]) in Module.php line 131
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 24

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/web/www.guijiling.com/public/index.php
QUERY_STRING s=/article/6.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /article/6.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/web/www.guijiling.com/public
SERVER_PROTOCOL HTTP/2.0
REQUEST_SCHEME https
HTTPS on
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.24.0
REMOTE_ADDR 54.224.90.25
REMOTE_PORT 34354
SERVER_ADDR 172.27.86.129
SERVER_PORT 443
SERVER_NAME www.guijiling.com
REDIRECT_STATUS 200
PATH_INFO
HTTP_HOST www.guijiling.com
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_REFERER http://www.guijiling.com/article/6.html
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711628502.8911
REQUEST_TIME 1711628502
Environment Variablesempty
ThinkPHP Constants
ROOT_PATH /www/wwwroot/web/www.guijiling.com/public/../application/
DS /