[8] ErrorException in d2b760bb2af9cbeb47e59bdfbd438623.php line 352

未定义数组索引: pm25

  1. <i class="fas fa-chart-bar"></i>
  2. 超过全国<?php echo htmlentities($allCityRank['rankPer']); ?>%的城市,全国排名 <?php echo htmlentities($allCityRank['rank']); ?> <a class="pos-r px-4" style="color: white;"
  3. href="http://www.ebd120.com/air/grade">查看详情 rel="nofollow"
  4. <i
  5. class="icon icon-hot"></i></a>【数据来源:中国环境监测总站】</br>更新时间:<?php echo htmlentities(renderDateTime($AQI['pubtime'])); ?>
  6. </p>
  7. <!--常规六项-->
  8. <ul class="aqi-items clearfix">
  9. <li>
  10. <div class="item-name aqi-lv<?php echo renderAQILevel($AQI['pm25'])[0]; ?>">PM2.5</div>
  11. <div class="item-value"><strong><?php echo htmlentities(round($AQI['pm25C'],0)); ?></strong></div>
  12. </li>
  13. <li>
  14. <div class="item-name aqi-lv<?php echo renderAQILevel($AQI['pm10'])[0]; ?>">PM10</div>
  15. <div class="item-value"><strong><?php echo htmlentities(round($AQI['pm10C'],0)); ?></strong></div>
  16. </li>
  17. <li>
  18. <div class="item-name aqi-lv<?php echo renderAQILevel($AQI['so2'])[0]; ?>">SO2</div>
  19. <div class="item-value"><strong><?php echo htmlentities(round($AQI['so2C'],0)); ?></strong></div>

Call Stack

  1. in d2b760bb2af9cbeb47e59bdfbd438623.php line 352
  2. at Error::appError(8, 'Undefined index: pm2...', '/data/ebd120_website...', 352, ['cacheFile' => '/data/ebd120_website...', 'vars' => ['loginTag' => null, 'loginAccount' => null, 'loginLocation' => ['city' => '蓬莱', 'code' => '2229', 'city_id' => 1446], ...], 'loginTag' => null, ...]) in d2b760bb2af9cbeb47e59bdfbd438623.php line 352
  3. at include('/data/ebd120_website...') in File.php line 59
  4. at File->read('/data/ebd120_website...', ['loginTag' => null, 'loginAccount' => null, 'loginLocation' => ['city' => '蓬莱', 'code' => '2229', 'city_id' => 1446], ...]) in Template.php line 226
  5. at Template->fetch('/data/ebd120_website...', ['loginTag' => null, 'loginAccount' => null, 'loginLocation' => ['city' => '蓬莱', 'code' => '2229', 'city_id' => 1446], ...], []) in Think.php line 93
  6. at Think->fetch('/data/ebd120_website...', ['loginTag' => null, 'loginAccount' => null, 'loginLocation' => ['city' => '蓬莱', 'code' => '2229', 'city_id' => 1446], ...], []) in View.php line 192
  7. at View->fetch('', ['loginTag' => null, 'loginAccount' => null, 'loginLocation' => ['city' => '蓬莱', 'code' => '2229', 'city_id' => 1446], ...], [], false) in View.php line 42
  8. at View->output('') in Response.php line 396
  9. at Response->getContent() in Response.php line 128
  10. at Response->send() in index.php line 22

Environment Variables

GET Data
city
2229
POST Dataempty
Filesempty
Cookiesempty
Session
www
{ "login": { "location": { "city": "\u84ec\u83b1", "code": "2229", "city_id": 1446 } } }
Server/Request Data
UNIQUE_ID
XaiGRGTwIh-i97zYAl29cgAAABo
HTTP_REMOTEIP
23.80.135.143
HTTP_HOST
www.ebd120.com
HTTP_X_FORWARDED_FOR
23.80.135.143
HTTP_CONNECTION
close
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.6 (CentOS) PHP/7.2.21
SERVER_NAME
www.ebd120.com
SERVER_ADDR
10.90.14.218
SERVER_PORT
80
REMOTE_ADDR
100.97.135.171
DOCUMENT_ROOT
/data/ebd120_website/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/data/ebd120_website/public
SERVER_ADMIN
tim@shuijingping.com
SCRIPT_FILENAME
/data/ebd120_website/public/index.php
REMOTE_PORT
44524
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
city=2229
REQUEST_URI
/?city=2229
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1571325508.094
REQUEST_TIME
1571325508
Environment Variablesempty
ThinkPHP Constants
SERVER_IP_ADDR
10.90.14.218
AOP_SDK_WORK_DIR
/data/ebd120_website/runtime/temp/
AOP_SDK_DEV_MODE
true