[8] ErrorException in Team.php line 188

Trying to get property of non-object

  1. * @param integer $id [团队人员id]
  2. * @return [type] [团队人员详情]
  3. */
  4. public function teamInfo($id=1)
  5. {
  6. $info = $this
  7. ->where('id',$id)
  8. ->find();
  9. $info->case = Model('Cases')
  10. ->where('sid',$info->id)
  11. ->count();
  12. return $info;
  13. }
  14. /**
  15. * [design 案例设计师信息]
  16. * @param integer $id [description]
  17. * @return [type] [description]
  18. */

Call Stack

  1. in Team.php line 188
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/www.ylx...', 188, ['id' => '83', 'info' => null]) in Team.php line 188
  3. at Team->teamInfo('83') in TeamController.php line 87
  4. at TeamController->detail()
  5. at ReflectionMethod->invokeArgs(object(TeamController), []) in Container.php line 395
  6. at Container->invokeReflectMethod(object(TeamController), object(ReflectionMethod), ['c' => 'Team', 'a' => 'detail', 'id' => '83', ...]) in Module.php line 132
  7. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  8. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  9. at Middleware->think\{closure}(object(Request))
  10. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  11. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  18. at Middleware->dispatch(object(Request)) in App.php line 435
  19. at App->run() in start.php line 41
  20. at require('/www/wwwroot/www.ylx...') in index.php line 43

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/www.ylxyzs.com/public/index.php
QUERY_STRING
s=/Team/detail/83.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/Team/detail/83.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/www.ylxyzs.com/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.16.0
REMOTE_ADDR
175.29.244.219
REMOTE_PORT
20003
SERVER_ADDR
172.18.135.6
SERVER_PORT
443
SERVER_NAME
www.ylxyzs.com
REDIRECT_STATUS
200
PATH_INFO
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.ylxyzs.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1600996870.9465
REQUEST_TIME
1600996870
Environment Variablesempty
ThinkPHP Constants
APP_PATH
/www/wwwroot/www.ylxyzs.com/public/../application/
APP_NAME
APP
APP_DEBUG
true