[0] Exception in Connection.php line 1121

缺少更新条件

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

Call Stack

  1. in Connection.php line 1121
  2. at Connection->update(object(Query)) in Query.php line 2902
  3. at Query->update(['id' => null, 'click' => 1]) in Model.php line 628
  4. at Model->updateData([]) in Model.php line 469
  5. at Model->save(['id' => null, 'click' => 1], []) in Model.php line 945
  6. at Model::update(['id' => null, 'click' => 1]) in NewsList.php line 171
  7. at NewsList->addClick(null) in NewsList.php line 48
  8. at NewsList->view(object(Request))
  9. at ReflectionMethod->invokeArgs(object(NewsList), [object(Request)]) in Container.php line 395
  10. at Container->invokeReflectMethod(object(NewsList), object(ReflectionMethod), ['cid' => '9', 'amp;id' => '2047', 'convert' => false]) in Module.php line 136
  11. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  12. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  13. at Middleware->think\{closure}(object(Request))
  14. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  15. at Middleware->dispatch(object(Request), 'controller') in Module.php line 141
  16. at Module->exec() in Dispatch.php line 168
  17. at Dispatch->run() in App.php line 432
  18. at App->think\{closure}(object(Request), object(Closure), null)
  19. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  20. at Middleware->think\{closure}(object(Request))
  21. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  22. at Middleware->dispatch(object(Request)) in App.php line 435
  23. at App->run() in index.php line 21

Environment Variables

GET Data
cid
9
amp;id
2047
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_
\\.\pipe\IISFCGI-000c95bd-4f40-4812-857b-13cf4413b3bc
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\xituxiehui\xituxiehui.config
APP_POOL_ID
xituxiehui
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
iZ6gfpxepd6d6wZ
ComSpec
C:\Windows\system32\cmd.exe
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;D:\ZendServer\share\ZendFramework\bin;D:\ZendServer\bin;D:\HwsHostM2019\phpweb\php71\php.exe;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\.dotnet\tools
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5504
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
iZ6gfpxepd6d6wZ$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/NewsView.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.sdxtxh.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
F:\mocha\xitu\public\index.php
REQUEST_URI
/NewsView.html?cid=9&id=2047
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
20001
REMOTE_HOST
154.88.123.176
REMOTE_ADDR
154.88.123.176
QUERY_STRING
cid=9&id=2047
PATH_TRANSLATED
F:\mocha\xitu\public\index.php\NewsView.html
PATH_INFO
/NewsView.html
LOGON_USER
LOCAL_ADDR
172.31.98.134
INSTANCE_META_PATH
/LM/W3SVC/4
INSTANCE_NAME
INSTANCE_ID
4
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
F:\mocha\xitu\public
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
F:\mocha\xitu\public\
APPL_MD_PATH
/LM/W3SVC/4/ROOT
IIS_UrlRewriteModule
7.1.1980.0
HTTP_X_ORIGINAL_URL
/NewsView.html?cid=9&id=2047
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.sdxtxh.com
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/NewsView.html
REQUEST_TIME_FLOAT
1620481858.509
REQUEST_TIME
1620481858
Environment Variablesempty
ThinkPHP Constantsempty