[8] ErrorException in Goods.php line 514

未定义数组索引: id

  1. foreach ($supplier_list as $slinde=>$slitem){
  2. $supplier_list[$slinde]['oa_user'] = Db::name('oa_users')->where('supplier_id',$slitem['id'])->field('id,name,headimgurl')->select();
  3. }*/
  4. $product_info['supplier_list'] = $supplier_list;
  5. }
  6. }
  7. }
  8. //规格
  9. $variety_date = [];
  10. $variety = GoodsVariety::where('goods_id', $product_info['id'])->select();
  11. $variety_index = [];
  12. $index = 0;
  13. foreach ($variety as $key => $value) {
  14. if (!isset($variety_date[$value['title']])) {
  15. $variety_date[$value['title']] = [];
  16. $variety_index[$value['title']] = $index;
  17. $index++;
  18. }
  19. array_push($variety_date[$value['title']], ['index' => $variety_index[$value['title']], 'item' => $value['item'], 'id' => $value['id'], 'url' => $value['url']]);

Call Stack

  1. in Goods.php line 514
  2. at Error::appError(8, 'Undefined index: id', '/www/wwwroot/vs.mini...', 514, ['input' => ['goods_id' => '113691'], 'navigation_item' => [], 'product_video_info' => [], ...]) in Goods.php line 514
  3. at Goods->goodsInfo()
  4. at ReflectionMethod->invokeArgs(object(Goods), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Goods), object(ReflectionMethod), ['goods_id' => '113691', '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)) in CheckCrawler.php line 32
  9. at CheckCrawler->handle(object(Request), object(Closure), null)
  10. at call_user_func_array([object(CheckCrawler), 'handle'], [object(Request), object(Closure), null]) in Middleware.php line 185
  11. at Middleware->think\{closure}(object(Request))
  12. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  13. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  14. at Module->exec() in Dispatch.php line 168
  15. at Dispatch->run() in App.php line 432
  16. at App->think\{closure}(object(Request), object(Closure), null)
  17. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  18. at Middleware->think\{closure}(object(Request))
  19. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  20. at Middleware->dispatch(object(Request)) in App.php line 435
  21. at App->run() in index.php line 22

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
think { "applet_id": 312 }
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_FORWARDED_FOR 3.235.130.73
HTTP_HOST www.bjlipin.com.cn
HTTP_REMOTEIP 3.235.130.73
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME vs.miniappss.com
SERVER_PORT 80
SERVER_ADDR 172.23.128.12
REMOTE_PORT 46286
REMOTE_ADDR 100.122.184.155
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/vs.miniappss.com/public
DOCUMENT_URI /index.php
REQUEST_URI /goodsInfo/113691.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/goodsInfo/113691.html
SCRIPT_FILENAME /www/wwwroot/vs.miniappss.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711641900.5122
REQUEST_TIME 1711641900
Environment Variablesempty
ThinkPHP Constants
TABLE_CACHE_TIME 60