Whoscold足球数据|中国有限公司-官方网站

[8] ErrorException in Drug.php line 34

Trying to access array offset on value of type null

  1. // 市场分布
  2. public function location()
  3. {
  4. $model = new \app\admin\model\Person;
  5. $citys = $model->group("city_id")->column("city_id");
  6. $list = [];
  7. foreach ($citys as $k=>$v){
  8. $temp = Area::where('id',$v)->field("name,lng,lat")->find();
  9. $list[$k]['name'] = $temp['name'];
  10. $list[$k]['coords'] = [$temp['lng'] , $temp['lat']];
  11. $list[$k]['item'] = $model->where("city_id",$v)->order("weigh","desc")->select();
  12. }
  13. // dump($list);die;
  14. $this->assign("list",json_encode($list));
  15. // 地区下拉
  16. $regionList = [];
  17. foreach ($model->getRegionList() as $k=>$v){
  18. $regionList[$k]['value'] = $k;

Call Stack

  1. in Drug.php line 34
  2. at Error::appError() in Drug.php line 34
  3. at Drug->location()
  4. at ReflectionMethod->invokeArgs() in App.php line 343
  5. at App::invokeMethod() in App.php line 611
  6. at App::module() in App.php line 456
  7. at App::exec() in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/jiren.h...') 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
PHP_APP_DEBUG
1
PHP_APP_TRACE
1
PHP_DATABASE_HOSTNAME
127.0.0.1
PHP_DATABASE_DATABASE
jiren
PHP_DATABASE_USERNAME
jiren
PHP_DATABASE_PASSWORD
9y79S8x8HbYrE5HA
PHP_DATABASE_HOSTPORT
3306
PHP_DATABASE_PREFIX
fa_
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.hljiren.com
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH_INFO
/index/drug/location
REDIRECT_STATUS
200
SERVER_NAME
www.hljiren.com
SERVER_PORT
80
SERVER_ADDR
172.19.7.238
REMOTE_PORT
51856
REMOTE_ADDR
170.130.206.2
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/jiren.hrbyc.top/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/drug/location
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/drug/location
SCRIPT_FILENAME
/www/wwwroot/jiren.hrbyc.top/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1785035902.009
REQUEST_TIME
1785035902
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/jiren.hrbyc.top/public/../application/
THINK_VERSION
5.0.28
THINK_START_TIME
1785035902.0093
THINK_START_MEM
408640
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/jiren.hrbyc.top/thinkphp/
LIB_PATH
/www/wwwroot/jiren.hrbyc.top/thinkphp/library/
CORE_PATH
/www/wwwroot/jiren.hrbyc.top/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/jiren.hrbyc.top/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/jiren.hrbyc.top/
EXTEND_PATH
/www/wwwroot/jiren.hrbyc.top/extend/
VENDOR_PATH
/www/wwwroot/jiren.hrbyc.top/vendor/
RUNTIME_PATH
/www/wwwroot/jiren.hrbyc.top/runtime/
LOG_PATH
/www/wwwroot/jiren.hrbyc.top/runtime/log/
CACHE_PATH
/www/wwwroot/jiren.hrbyc.top/runtime/cache/
TEMP_PATH
/www/wwwroot/jiren.hrbyc.top/runtime/temp/
CONF_PATH
/www/wwwroot/jiren.hrbyc.top/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
/www/wwwroot/jiren.hrbyc.top/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/www/wwwroot/jiren.hrbyc.top/addons/
0.055002s
XML 地图