[8] ErrorException in Server.php line 160

未定义数组索引: is_template

  1. $serverinfo = db("service")->alias('a')
  2. ->leftJoin('service_admin c','a.sid=c.id')
  3. ->where($where)
  4. ->field('a.*, c.title,c.customized,c.area_id as carea_id,c.park_id as cpark_id')
  5. ->find();
  6. if(!$serverinfo['is_template']){
  7. $content = db('service_data')->where(['id'=>$id])->column('content');
  8. $serverinfo['content'] =$content[0];
  9. }
  10. if($serverinfo['is_template']){
  11. $content = db('service_template')->where(['id'=>$serverinfo['sid']])->column('content');
  12. //var_dump($content);
  13. if($content){
  14. $serverinfo['content'] =$content[0];
  15. }
  16. else{
  17. $serverinfo['content'] = '';
  18. }
  19. }

Call Stack

  1. in Server.php line 160
  2. at Error::appError(8, 'Undefined index: is_...', '/web/lzz_serve/appli...', 160, ['id' => 452, 'sername' => ['userid' => 23, 'username' => 'mjcs', 'truename' => '李霞', ...], 'where' => [['a.status', '=', 1], ['a.userid', '=', '23'], ['a.id', '=', 452]], ...]) in Server.php line 160
  3. at Server->serverinfo()
  4. at ReflectionMethod->invokeArgs(object(Server), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Server), object(ReflectionMethod), ['itemid' => '452', 'userid' => '23']) 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 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
indexjumpUrl /index/server/serverinfo/itemid/452/userid/23.html
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST service.cqsmartpark.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
SERVER_NAME service.cqsmartpark.cn
SERVER_PORT 443
SERVER_ADDR 172.18.192.105
REMOTE_PORT 54740
REMOTE_ADDR 18.213.110.162
SERVER_SOFTWARE nginx/1.14.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /web/lzz_serve/public
DOCUMENT_URI /index.php
REQUEST_URI /index/server/serverinfo/itemid/452/userid/23.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//index/server/serverinfo/itemid/452/userid/23.html
SCRIPT_FILENAME /web/lzz_serve/public/index.php
PATH_INFO
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711674804.3713
REQUEST_TIME 1711674804
Environment Variablesempty
ThinkPHP Constants
EXTEND_PATH /web/lzz_serve/public/../extend/
HTMLPURIFIER_PREFIX /web/lzz_serve/vendor/ezyang/htmlpurifier/library