[8] ErrorException in Frontend.php line 78

Trying to get property 'isaudit' of non-object

  1. $actionname = strtolower($this->request->action());
  2. //获取url地址中的运营商名称
  3. $agentUserName = self::getSecondDomain();
  4. /*if($agentUserName == 'spyxmv'){
  5. }*/
  6. $agentModel = new \app\admin\model\Agent();
  7. $agentInfo = $agentModel->where(array('username'=>$agentUserName))->find();
  8. if($agentInfo->isaudit === 'n')
  9. {
  10. $this->error('网站已关闭');die;
  11. }
  12. $agentConfigModel = new \app\admin\model\Agentconfig();
  13. $agentConfig = $agentConfigModel->where(array('agentuid'=>$agentInfo->id))->find();
  14. if(empty($agentInfo))
  15. {
  16. //这个地方回头弄成404

Call Stack

  1. in Frontend.php line 78
  2. at Error::appError(8, 'Trying to get proper...', 'C:\wamp64\www\new23v...', 78, ['modulename' => 'index', 'controllername' => 'index', 'actionname' => 'index', ...]) in Frontend.php line 78
  3. at Frontend->_initialize() in Index.php line 17
  4. at Index->_initialize() in Controller.php line 59
  5. at Controller->__construct(object(Request))
  6. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  7. at App::invokeClass('app\index\controller...') in Loader.php line 479
  8. at Loader::controller('index', 'controller', false, 'Error') in App.php line 580
  9. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('C:\wamp64\www\new23v...') in index.php line 22

Environment Variables

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

Server/Request Data

SCRIPT_URL
/
SCRIPT_URI
http://mv.hunlishipin.com/
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
mv.hunlishipin.com
PATH
C:\Windows\System32\curl\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;
SystemRoot
C:\windows
COMSPEC
C:\windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\windows
SERVER_SIGNATURE
<address>Apache/2.4.37 (Win64) PHP/7.2.14 Server at mv.hunlishipin.com Port 80</address>
SERVER_SOFTWARE
Apache/2.4.37 (Win64) PHP/7.2.14
SERVER_NAME
mv.hunlishipin.com
SERVER_ADDR
10.26.94.132
SERVER_PORT
80
REMOTE_ADDR
3.238.118.192
DOCUMENT_ROOT
C:/wamp64/www/new23vcr/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
C:/wamp64/www/new23vcr/public
SERVER_ADMIN
admin@23vcr.com
SCRIPT_FILENAME
C:/wamp64/www/new23vcr/public/index.php
REMOTE_PORT
42578
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711689643.14
REQUEST_TIME
1711689643
Environment Variables
empty

ThinkPHP Constants

APP_PATH
C:\wamp64\www\new23vcr\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711689643.1442
THINK_START_MEM
397920
EXT
.php
DS
\
THINK_PATH
C:\wamp64\www\new23vcr\thinkphp\
LIB_PATH
C:\wamp64\www\new23vcr\thinkphp\library\
CORE_PATH
C:\wamp64\www\new23vcr\thinkphp\library\think\
TRAIT_PATH
C:\wamp64\www\new23vcr\thinkphp\library\traits\
ROOT_PATH
C:\wamp64\www\new23vcr\
EXTEND_PATH
C:\wamp64\www\new23vcr\extend\
VENDOR_PATH
C:\wamp64\www\new23vcr\vendor\
RUNTIME_PATH
C:\wamp64\www\new23vcr\runtime\
LOG_PATH
C:\wamp64\www\new23vcr\runtime\log\
CACHE_PATH
C:\wamp64\www\new23vcr\runtime\cache\
TEMP_PATH
C:\wamp64\www\new23vcr\runtime\temp\
CONF_PATH
C:\wamp64\www\new23vcr\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
ADDON_PATH
C:\wamp64\www\new23vcr\addons\