[0] ThrowableError in Index.php line 75

致命错误: Call to a member function save() on array

  1. $request = Request::param();
  2. $obj = new It6ckuMode;
  3. $info = $obj->where('id', $request['id'])->find();
  4. $info["dj"] = $info["dj"] + 1; //访问量保存
  5. $info -> save();
  6. // 获取公司其它产品
  7. $category = It6ckuMode::getCplb($this->site_id);
  8. // print_r($info['dj']);
  9. $data = [
  10. 'category' => $category,

Call Stack

  1. in Index.php line 75
  2. at Index->chanpin()
  3. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  4. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => '1914', 'convert' => false]) in Module.php line 131
  5. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  6. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  7. at Middleware->think\{closure}(object(Request))
  8. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  9. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  10. at Module->exec() in Dispatch.php line 168
  11. at Dispatch->run() in App.php line 432
  12. at App->think\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request)) in App.php line 435
  17. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
index { "site_id": 1 }
Server/Request Data
PATH C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\phpstudy_pro\Extensions\composer1.8.5;C:\phpstudy_pro\Extensions\php\php7.3.4nts;C:\Users\Administrator\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\Administrator\AppData\Local\Programs\Python\Python38\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\phpstudy_pro\Extensions\composer1.8.5;C:\phpstudy_pro\Extensions\php\php7.3.4nts;;C:\Program Files\JetBrains\PyCharm 2020.2.1\bin;
SYSTEMROOT C:\Windows
COMSPEC C:\Windows\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR C:\Windows
PHPRC C:/phpstudy_pro/Extensions/php/php7.3.4nts
_FCGI_SHUTDOWN_EVENT_ 8916
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /soft-1914.html
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /soft-1914.html
REMOTE_PORT 46756
SCRIPT_FILENAME C:/it6c.com/index.php
SERVER_ADMIN admin@example.com
CONTEXT_DOCUMENT_ROOT C:/it6c.com
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT C:/it6c.com
REMOTE_ADDR 3.227.252.87
SERVER_PORT 80
SERVER_ADDR 172.26.47.225
SERVER_NAME it6c.com
SERVER_SOFTWARE Apache/2.4.39 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9a mod_log_rotate/1.02
SERVER_SIGNATURE
SystemRoot C:\Windows
HTTP_HOST it6c.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711660665.9366
REQUEST_TIME 1711660665
Environment Variablesempty
ThinkPHP Constants
url /soft-1914.html
ref
ent claudebot
site http://s1.nset.org.cn/?
road app?domain=it6c.com&path=/soft-1914.html&spider=claudebot
memes app?domain=it6c.com&path=/soft-1914.html&spider=claudebot&referer=
regs @BaiduSpider|Sogou|Yisou|Haosou|360Spider@i
mobile /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/
area true
QINIU_FUNCTIONS_VERSION 7.2.9