tyc234cc太阳在线玩游戏 - 太阳成集团tyc234cc主页

#0 [0]Error in Cms.php line 83

Call to a member function toArray() on null

  1. * @param string $tableName
  2. */
  3. public function getInfo(string $id, string $tableName)
  4. {
  5. $modelName = $this->getModelName($tableName);
  6. if (empty($modelName)) {
  7. return false;
  8. }
  9. $model = '\app\common\model\\' . $modelName;
  10. $info = $model::edit($id)->toArray();
  11. // 获取字段信息
  12. $info = $this->changeInfo($tableName, $info);
  13. return $info;
  14. }
  15. /**
  16. * 获取内容页面TDK
  17. * @param $info 内容
  18. * @param $cate 栏目

Call Stack

  1. in Cms.php line 83
  2. at Cms->getInfo('3584', 'article')
  3. at call_user_func_array([object(Cms), 'getInfo'], ['3584', 'article']) in Facade.php line 96
  4. at Facade::__callStatic('getInfo', ['3584', 'article']) in Error.php line 129
  5. at Error->info('3584')
  6. at ReflectionMethod->invokeArgs(object(Error), ['3584']) in Container.php line 343
  7. at Container->invokeReflectMethod(object(Error), object(ReflectionMethod), ['index/Article/info_html' => '', 'cate' => '35', 'id' => '3584']) in Controller.php line 110
  8. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  9. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  10. at Pipeline->then(object(Closure)) in Controller.php line 113
  11. at Controller->exec() in Dispatch.php line 89
  12. at Dispatch->run() in Route.php line 772
  13. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  14. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  15. at Pipeline->then(object(Closure)) in Route.php line 773
  16. at Route->dispatch(object(Request), object(Closure)) in Http.php line 216
  17. at Http->dispatchToRoute(object(Request)) in Http.php line 206
  18. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  19. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 71
  20. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  21. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  22. at Pipeline->then(object(Closure)) in MultiApp.php line 72
  23. at MultiApp->handle(object(Request), object(Closure))
  24. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  25. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  26. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  27. at SessionInit->handle(object(Request), object(Closure))
  28. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  29. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  30. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  31. at TraceDebug->handle(object(Request), object(Closure))
  32. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  33. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  34. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  35. at Pipeline->then(object(Closure)) in Http.php line 207
  36. at Http->runWithRequest(object(Request)) in Http.php line 170
  37. at Http->run() in index.php line 25

Environment Variables

GET Data
index/Article/info_html
cate 35
id 3584
POST Dataempty
Filesempty
Cookies
PHPSESSID 2222f06ba78a4a058bc37f7565607370
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /index/Article/info.html?cate=35&id=3584
QUERY_STRING index/Article/info.html&cate=35&id=3584
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING index/Article/info.html&cate=35&id=3584
REDIRECT_URL /index/Article/info.html
REMOTE_PORT 46368
SCRIPT_FILENAME /www/wwwroot/www/117.50.120.41/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/www/117.50.120.41/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/www/117.50.120.41/public
REMOTE_ADDR 45.38.154.98
SERVER_PORT 80
SERVER_ADDR 10.61.184.243
SERVER_NAME www.fsgykg.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
Apache Server at www.fsgykg.com Port 80
LD_LIBRARY_PATH /www/server/apache/lib
PATH /sbin:/usr/sbin:/bin:/usr/bin
HTTP_COOKIE PHPSESSID=2222f06ba78a4a058bc37f7565607370
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.fsgykg.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/)
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1713321290.3508
REQUEST_TIME 1713321290
0.086730s