[8] ErrorException in Article.php line 183

未定义变量: map

  1. if($keyword){
  2. $map['title']=array('like', '%'. $keyword .'%');
  3. }
  4. $tag=input('tag');
  5. if($tag){
  6. $map[]=array('','exp', Db::raw('FIND_IN_SET("'. $tag .'",tags)'));
  7. }
  8. $result=$bi_doc->lists(map_format($map), 12, $order);
  9. $list = $result['data'];
  10. $total = $result['_total'];
  11. if(false === $list){ $this->error('很抱歉,找不到相关数据!'); }
  12. $this->assign('total', $total);
  13. $this->assign('_page', $result['_page']);
  14. foreach ($list as &$v) {
  15. $v['url'] = Url('web/article/detail?id='.$v['id']);
  16. if(isset($v['thumb']) && $v['thumb']){

Call Stack

  1. in Article.php line 183
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/www.hum...', 183, ['bi_doc' => object(Doc), 'tmpl' => null, 'order' => 'sort desc, create_ti...', ...]) in Article.php line 183
  3. at Article->search()
  4. at ReflectionMethod->invokeArgs(object(Article), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Article), object(ReflectionMethod), ['auth_token' => 2, 'auth_lang' => 'en', '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))
  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 490
  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 493
  18. at App->run() in start.php line 18
  19. at require('/www/wwwroot/www.hum...') in index.php line 9

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 www.humzor.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.humzor.com
SERVER_PORT 443
SERVER_ADDR 172.26.81.255
REMOTE_PORT 52822
REMOTE_ADDR 44.210.78.150
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/www.humzor.com
DOCUMENT_URI /index.php
REQUEST_URI /search
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/search
SCRIPT_FILENAME /www/wwwroot/www.humzor.com/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711698197.3744
REQUEST_TIME 1711698197
Environment Variablesempty
ThinkPHP Constants
CONF_PATH /www/wwwroot/www.humzor.com/conf/
APP_PATH /www/wwwroot/www.humzor.com/app/
TMPL_PATH ./client/
THINK_VERSION 5.1.38
THINK_START_TIME 1711698197.3748
THINK_START_MEM 377776
EXT .php
DS /
THINK_PATH /www/wwwroot/www.humzor.com/core/
__SELF__ /search
_PHP_FILE_ /index.php
__ROOT__
HTTP_PREFIX https://
SITE_DOMAIN www.humzor.com
SITE_URL https://www.humzor.com
SITE_PATH /www/wwwroot/www.humzor.com
BI_SYSTEM 企业应用系统
BI_AUTHOR BiXing SOFT
BI_SUPPORT QQ1977917927
BI_VERSION T 5.102
BI_ADDON_PATH ./Addons/
BI_PLUGIN_PATH ./plugins/
ADDON_ROOT ./addons/
ADDON_PATH /www/wwwroot/www.humzor.com/addons/
NOW_TPL_IMG /./themes/skin/default/static/images
NOW_TPL_CSS /./themes/skin/default/static/css
NOW_TPL_JS /./themes/skin/default/static/js
IS_AJAX false
IS_GET true
IS_POST false
IS_AJAX_POST false
NOW_TIME 1711698197
MODULE_NAME web
CONTROLLER_NAME Article
ACTION_NAME search