[0] Exception in Query.php line 2413

缺少更新条件

  1. } else {
  2. // 如果缺少复合主键数据则不执行
  3. throw new Exception('miss complex primary data');
  4. }
  5. unset($data[$field]);
  6. }
  7. }
  8. if (!isset($where)) {
  9. // 如果没有任何更新条件则不执行
  10. throw new Exception('miss update condition');
  11. } else {
  12. $options['where']['AND'] = $where;
  13. }
  14. } elseif (!isset($key) && is_string($pk) && isset($options['where']['AND'][$pk])) {
  15. $key = $this->getCacheKey($options['where']['AND'][$pk], $options, $this->bind);
  16. }
  17. // 生成UPDATE SQL语句
  18. $sql = $this->builder->update($data, $options);

Call Stack

  1. in Query.php line 2413
  2. at Query->update(['view' => 1]) in Content.php line 14
  3. at Content->index()
  4. at ReflectionMethod->invokeArgs(object(Content), []) in App.php line 343
  5. at App::invokeMethod([object(Content), 'index'], []) in App.php line 611
  6. at App::module(['index', 'content', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'content', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/m.teshu...') in index.php line 20

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.teshufuhao.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/a/xinwenzixun/20170430/21.html
REDIRECT_STATUS
200
SERVER_NAME
m.teshufuhao.cn
SERVER_PORT
80
SERVER_ADDR
172.26.3.87
REMOTE_PORT
33724
REMOTE_ADDR
3.84.7.255
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/m.teshufuhao.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/a/xinwenzixun/20170430/21.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/a/xinwenzixun/20170430/21.html
SCRIPT_FILENAME
/www/wwwroot/m.teshufuhao.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711618871.0626
REQUEST_TIME
1711618871
Environment Variables
empty

ThinkPHP Constants

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