[8] ErrorException in Houses.php line 772

Trying to get property 'authStatus' of non-object

  1. $this->view->assign('new_houses', $new_houses);
  2. $this->view->assign('title', '品牌找房');
  3. return $this->view->fetch();
  4. }
  5. public function detail($d)
  6. {
  7. $row = $this->model->get($d);
  8. if (!in_array($row->authStatus,['success','rented'])){
  9. $this->error("非法请求");
  10. }
  11. $row->views += 1;
  12. $row->save();
  13. $facility_list = Facility::where(['id' => ['in', $row->facility_ids], 'status' => 'normal'])->select();
  14. $feature_list = Feature::where(['id' => ['in', $row->feature_ids], 'status' => 'normal'])->select();
  15. $row->facility_list = $facility_list; // 设施
  16. $row->feature_list = $feature_list;// 特色

Call Stack

  1. in Houses.php line 772
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/www.jia...', 772, ['d' => '1054369', 'row' => null]) in Houses.php line 772
  3. at Houses->detail('1054369')
  4. at ReflectionMethod->invokeArgs(object(Houses), ['1054369']) in App.php line 343
  5. at App::invokeMethod([object(Houses), 'detail'], []) in App.php line 611
  6. at App::module(['index', 'houses.houses', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'houses.houses', 'detail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/www.jia...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
jiazaishanghai.com
PATH_INFO
/index/houses/houses/detail/d/1054369.html
REDIRECT_STATUS
200
SERVER_NAME
www.jiazaishanghai.com
SERVER_PORT
443
SERVER_ADDR
172.26.222.145
REMOTE_PORT
44638
REMOTE_ADDR
44.200.77.59
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/www.jiazaishanghai.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/houses/houses/detail/d/1054369.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/houses/houses/detail/d/1054369.html
SCRIPT_FILENAME
/www/wwwroot/www.jiazaishanghai.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711646886.8393
REQUEST_TIME
1711646886
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.jiazaishanghai.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711646886.8401
THINK_START_MEM
405168
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.jiazaishanghai.com/thinkphp/
LIB_PATH
/www/wwwroot/www.jiazaishanghai.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.jiazaishanghai.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.jiazaishanghai.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.jiazaishanghai.com/
EXTEND_PATH
/www/wwwroot/www.jiazaishanghai.com/extend/
VENDOR_PATH
/www/wwwroot/www.jiazaishanghai.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.jiazaishanghai.com/runtime/
LOG_PATH
/www/wwwroot/www.jiazaishanghai.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.jiazaishanghai.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.jiazaishanghai.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.jiazaishanghai.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/www.jiazaishanghai.com/addons/