#0 [0]Error in PublicController.php line 28

Call to undefined method stdClass::save()

  1. $row = $param['row'];
  2. $row['id'] = 0;
  3. $where['id'] = $row['id'];
  4. } else {
  5. $where['id'] = $param['id'];
  6. $row = News::filterWhere($where)
  7. ->find();
  8. $row->cnt_view++;
  9. $row->save();
  10. unset(
  11. $where['id']
  12. );
  13. }
  14. if (\shisou\tpinit\isMobile()) {
  15. $cateWhere[] = [
  16. 'cate_id',

Call Stack

  1. in PublicController.php line 28
  2. at PublicController->detailsAction()
  3. at ReflectionMethod->invokeArgs() in Container.php line 344
  4. at Container->invokeReflectMethod() in Controller.php line 110
  5. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  6. at Pipeline->think\{closure}() in Pipeline.php line 66
  7. at Pipeline->then() in Controller.php line 113
  8. at Controller->exec() in Dispatch.php line 80
  9. at Dispatch->run() in Route.php line 793
  10. at Route->think\{closure}() in Pipeline.php line 59
  11. at Pipeline->think\{closure}() in Pipeline.php line 66
  12. at Pipeline->then() in Route.php line 794
  13. at Route->dispatch() in Http.php line 216
  14. at Http->dispatchToRoute() in Http.php line 206
  15. at Http->think\{closure}() in Pipeline.php line 59
  16. at Pipeline->think\{closure}() in AllowCrossDomain.php line 61
  17. at AllowCrossDomain->handle()
  18. at call_user_func() in Middleware.php line 142
  19. at Middleware->think\{closure}() in Pipeline.php line 85
  20. at Pipeline->think\{closure}() in SessionInit.php line 67
  21. at SessionInit->handle()
  22. at call_user_func() in Middleware.php line 142
  23. at Middleware->think\{closure}() in Pipeline.php line 85
  24. at Pipeline->think\{closure}() in Pipeline.php line 66
  25. at Pipeline->then() in Http.php line 207
  26. at Http->runWithRequest() in Http.php line 170
  27. at Http->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST yrsw.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.yrsw.cn
SERVER_PORT 80
SERVER_ADDR 192.168.0.153
REMOTE_PORT 35970
REMOTE_ADDR 3.215.77.88
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/think.yrsw/think/public
DOCUMENT_URI /index.php
REQUEST_URI /show-37.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//show-37.html
SCRIPT_FILENAME /www/wwwroot/think.yrsw/think/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711711404.5496
REQUEST_TIME 1711711404