[8] ErrorException in IndexController.php line 112

未定义数组索引: url

  1. $temp = Db::name('template')
  2. ->alias('a')
  3. ->join ('group b','a.industry_type = b.id', 'LEFT')
  4. ->join ('group c','a.type = c.id', 'LEFT')
  5. ->where(array('a.id'=>$id,'a.status'=>1))
  6. ->field('a.*,b.title as industryname,c.title as typename')
  7. ->find();
  8. $temp['carouselimg']=json_decode($temp['carouselimg']);
  9. $temp['carouselimg']=$temp['carouselimg'][0];
  10. if(preg_match($preg,$temp['url']))
  11. {
  12. }else {
  13. $temp['url']='http://'.$temp['url'];
  14. }
  15. $in_type= trim($temp['industry_type'], ",");
  16. $in_type_id=explode(',', $in_type);
  17. $industrygroup= Db::name('group')->where('id',$in_type_id[0])->field('id,title')->find();
  18. $where['id']=['in',$temp['color'],$temp['type'], $temp['client'],$in_type];

Call Stack

  1. in IndexController.php line 112
  2. at Error::appError(8, 'Undefined index: url', '/www/wwwroot/111/111...', 112, ['preg' => '/^http(s)?:\/\/.+/', 'id' => '100', 'search_name' => null, ...]) in IndexController.php line 112
  3. at IndexController->details()
  4. at ReflectionMethod->invokeArgs(object(IndexController), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(IndexController), object(ReflectionMethod), ['id' => '100']) 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 484
  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 487
  18. at App->run() in index.php line 42

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
REDIRECT_STATUS 200
proxy-nokeepalive 1
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST jiagou.cqhot.cn
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /www/server/apache/lib
SERVER_SIGNATURE <address>Apache Server at jiagou.cqhot.cn Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME jiagou.cqhot.cn
SERVER_ADDR 119.84.73.132
SERVER_PORT 80
REMOTE_ADDR 3.238.87.31
DOCUMENT_ROOT /www/wwwroot/111/1111/template/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /www/wwwroot/111/1111/template/public
SERVER_ADMIN webmaster@example.com
SCRIPT_FILENAME /www/wwwroot/111/1111/template/public/index.php
REMOTE_PORT 40098
REDIRECT_URL /template/index/details/id/100.html
REDIRECT_QUERY_STRING s=template/index/details/id/100.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING s=template/index/details/id/100.html
REQUEST_URI /template/index/details/id/100.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711616159.8553
REQUEST_TIME 1711616159
Environment Variablesempty
ThinkPHP Constants
APP_DEBUG true
CMF_ROOT /www/wwwroot/111/1111/template/
CMF_DATA /www/wwwroot/111/1111/template/data/
APP_PATH /www/wwwroot/111/1111/template/app/
WEB_ROOT /www/wwwroot/111/1111/template/public/
HTMLPURIFIER_PREFIX /www/wwwroot/111/1111/template/vendor/ezyang/htmlpurifier/library