#0 [8]ErrorException in Index.php line 646

Trying to access array offset on value of type null

  1. {
  2. // print_r(session::get('pptsession'));exit;
  3. $catid = Request::param('cate', 0, 'intval');
  4. $id = Request::param('id', 0, 'intval');
  5. $category = GoodsTypeModel::getOne(['id' => $catid]);
  6. if (empty($id) || empty($category)) {
  7. abort(404, '页面不存在');
  8. }
  9. $info = GoodsModel::getOne(['goods_id' => $id]);
  10. $dzzq = DeliveryModel::getOne(['id' => $info['cy_id']]);
  11. if(!empty($dzzq)){
  12. $info['dzzq'] = $dzzq['title'];
  13. }else{
  14. $info['dzzq'] = '';
  15. }
  16. if(!empty($info['price_ladder'])){
  17. $ladder = unserialize($info['price_ladder']);
  18. }
  19. if(empty($info['jgjt_num1']) && empty($info['jgjt_price1']) && empty($info['jgjt_num2']) && empty($info['jgjt_price2']) && empty($info['jgjt_num3']) && empty($info['jgjt_price3'])){

Call Stack

  1. in Index.php line 646
  2. at Error->appError() in Index.php line 646
  3. at Index->detail()
  4. at ReflectionMethod->invokeArgs() in Container.php line 343
  5. at Container->invokeReflectMethod() in Controller.php line 110
  6. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  7. at Pipeline->think\{closure}() in Pipeline.php line 66
  8. at Pipeline->then() in Controller.php line 113
  9. at Controller->exec() in Dispatch.php line 89
  10. at Dispatch->run() in Route.php line 772
  11. at Route->think\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Pipeline.php line 66
  13. at Pipeline->then() in Route.php line 773
  14. at Route->dispatch() in Http.php line 216
  15. at Http->dispatchToRoute() in Http.php line 206
  16. at Http->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in MultiApp.php line 71
  18. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  19. at Pipeline->think\{closure}() in Pipeline.php line 66
  20. at Pipeline->then() in MultiApp.php line 72
  21. at MultiApp->handle()
  22. at call_user_func() in Middleware.php line 142
  23. at Middleware->think\{closure}() in Pipeline.php line 85
  24. at Pipeline->think\{closure}() in SessionInit.php line 67
  25. at SessionInit->handle()
  26. at call_user_func() in Middleware.php line 142
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in CheckRequestCache.php line 94
  29. at CheckRequestCache->handle()
  30. at call_user_func() in Middleware.php line 142
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in TraceDebug.php line 71
  33. at TraceDebug->handle()
  34. at call_user_func() in Middleware.php line 142
  35. at Middleware->think\{closure}() in Pipeline.php line 85
  36. at Pipeline->think\{closure}() in Pipeline.php line 66
  37. at Pipeline->then() in Http.php line 207
  38. at Http->runWithRequest() in Http.php line 170
  39. at Http->run() in index.php line 32

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST jzjgift.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME jzjgift.com
SERVER_PORT 443
SERVER_ADDR 172.17.57.163
REMOTE_PORT 36612
REMOTE_ADDR 3.91.19.28
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/jzjgift.com/public
DOCUMENT_URI /index.php
REQUEST_URI /detail/18/175
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/detail/18/175
SCRIPT_FILENAME /www/wwwroot/jzjgift.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711645564.727
REQUEST_TIME 1711645564
0.271731s