[8] ErrorException in Goods.php line 238

未定义变量: DataList

  1. $DataList[$key]['goods_name'] = $value['goods_name'];// 产品的名称
  2. $DataList[$key]['min_group_price'] = $value['min_group_price'];//原价
  3. $DataList[$key]['coupon_discount'] = $value['coupon_discount']; //优惠券
  4. $DataList[$key]['present_price'] = $value['min_group_price'] - $value['coupon_discount']; //打折之后的价格
  5. $DataList[$key]['sales_tip'] = $value['sales_tip']; //已经购买该商品的总人数
  6. }
  7. $CommonConfig = new CommonConfig();
  8. $tpshop_config_array = $CommonConfig->tpshop_config_array();
  9. $this->assign('tpshop_config',$tpshop_config_array); //大拼客肉单直播产品数据
  10. $this->assign('goods_list',$DataList); //返回导航栏的信息
  11. $agent = $CommonConfig->check_wap();
  12. if($agent){
  13. //当前拾手机端进行访问, 跳转到手机端的模板页面
  14. return view('mobilechannel');
  15. }
  16. else{
  17. $navigation_bar = $CommonConfig->return_navigation_bar();
  18. $category_list = $CommonConfig->return_category_list(); //返回分类的信息
  19. $this->assign('navigation_bar',$navigation_bar); //返回导航栏的信息

Call Stack

  1. in Goods.php line 238
  2. at Error::appError(8, 'Undefined variable: ...', '/var/www/html/wx/app...', 238, ['param' => ['theme_id' => '7614'], 'pdd' => object(Client), 'info' => '{"theme_list_get_res...', ...]) in Goods.php line 238
  3. at Goods->channel()
  4. at ReflectionMethod->invokeArgs(object(Goods), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Goods), object(ReflectionMethod), ['theme_id' => '7614']) in Module.php line 132
  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 137
  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 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
UNIQUE_ID ZgZWlBy3Adv5oQQfu1g6@wAAAAI
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST 90jo.com
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.24
SERVER_NAME 90jo.com
SERVER_ADDR 172.18.55.158
SERVER_PORT 80
REMOTE_ADDR 18.207.161.212
DOCUMENT_ROOT /var/www/html/wx/public/
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html/wx/public/
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/html/wx/public/index.php
REMOTE_PORT 32980
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /index.php/index/goods/channel/theme_id/7614
SCRIPT_NAME /index.php
PATH_INFO /index/goods/channel/theme_id/7614
PATH_TRANSLATED /var/www/html/wx/public/index/goods/channel/theme_id/7614
PHP_SELF /index.php/index/goods/channel/theme_id/7614
REQUEST_TIME_FLOAT 1711691412.551
REQUEST_TIME 1711691412
Environment Variablesempty
ThinkPHP Constants
QINIU_FUNCTIONS_VERSION 7.2.9