[8] ErrorException in ArticleModel.php line 66

未定义变量: where

  1. if(isset($searchParams['is_trash']) && $searchParams['is_trash']!=''){
  2. $where['is_trash'] = $searchParams['is_trash'];
  3. }
  4. if(!empty($searchParams['order_by'])){
  5. $result = Db::name($this->name)->where($where)->order($searchParams['order_by'])->find();
  6. }else{
  7. $result = Db::name($this->name)->where($where)->find();
  8. }
  9. return $result;
  10. }
  11. //总数
  12. public function getListConut($searchParams=array()){

Call Stack

  1. in ArticleModel.php line 66
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/www.inq...', 66, ['searchParams' => ['id' => '']]) in ArticleModel.php line 66
  3. at ArticleModel->getInfoByWhere(['id' => '']) in News.php line 69
  4. at News->service()
  5. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  6. at App::invokeMethod([object(News), 'service'], []) in App.php line 611
  7. at App::module(['index', 'news', 'service'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'service']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/www/wwwroot/www.inq...') in index.php line 18

Environment Variables

GET Data

cityid
18
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
inqiyu.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/index/news/service
REDIRECT_STATUS
200
SERVER_NAME
www.inqiyu.com
SERVER_PORT
80
SERVER_ADDR
172.18.221.116
REMOTE_PORT
47054
REMOTE_ADDR
54.146.154.243
SERVER_SOFTWARE
nginx/1.22.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/news/service?cityid=18
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/news/service&cityid=18
SCRIPT_FILENAME
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711655651.3387
REQUEST_TIME
1711655651
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711655651.3391
THINK_START_MEM
403976
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/thinkphp/
LIB_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/
EXTEND_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/extend/
VENDOR_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/runtime/
LOG_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.inqiyu.com/www.inqiyu.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false