[8] ErrorException in d2b760bb2af9cbeb47e59bdfbd438623.php line 450

未定义数组索引: aqi

  1. <?php endif; ?>
  2. </ul>
  3. </div>
  4. </div>
  5. <ul class="week-trend clearfix">
  6. <?php if(!empty($weather15Day)): foreach($weather15Day as $value): ?>
  7. <li>
  8. <p class="date"><?php echo htmlentities($value['predictDate']); ?></p>
  9. <p class="day"><?php echo htmlentities(renderWeek($value['predictDate'])); ?></p>
  10. <h1 class="value aqi-lv<?php echo renderAQILevel($value['aqi'])[0]; ?>"><?php echo htmlentities($value['aqi']); ?></h1>
  11. <p>香港竞博 AQI <?php echo renderAQILevel($value['aqi'])[1]; ?></p>
  12. <p class="icon"><img src="/images/icons/weather/W<?php echo htmlentities($value['conditionIdDay']); ?>.png"/></p>
  13. <p class="weather"><?php echo htmlentities($value['conditionDay']); ?></p>
  14. <p class="temper"><?php echo htmlentities($value['tempDay']); ?>℃~<?php echo htmlentities($value['tempNight']); ?>℃</p>
  15. <p class="wind"><?php echo htmlentities($value['windDirDay']); ?> <?php echo htmlentities($value['windLevelDay']); ?>级</p>
  16. </li>
  17. <?php endforeach; ?>
  18. <?php endif; ?>
  19. </ul>

Call Stack

  1. in d2b760bb2af9cbeb47e59bdfbd438623.php line 450
  2. at Error::appError(8, 'Undefined index: aqi', '/data/ebd120_website...', 450, ['cacheFile' => '/data/ebd120_website...', 'vars' => ['loginTag' => null, 'loginAccount' => null, 'loginLocation' => ['city' => '陇南', 'code' => '0514', 'city_id' => 285294], ...], 'loginTag' => null, ...]) in d2b760bb2af9cbeb47e59bdfbd438623.php line 450
  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' => '0514', 'city_id' => 285294], ...]) in Template.php line 226
  5. at Template->fetch('/data/ebd120_website...', ['loginTag' => null, 'loginAccount' => null, 'loginLocation' => ['city' => '陇南', 'code' => '0514', 'city_id' => 285294], ...], []) in Think.php line 93
  6. at Think->fetch('/data/ebd120_website...', ['loginTag' => null, 'loginAccount' => null, 'loginLocation' => ['city' => '陇南', 'code' => '0514', 'city_id' => 285294], ...], []) in View.php line 192
  7. at View->fetch('', ['loginTag' => null, 'loginAccount' => null, 'loginLocation' => ['city' => '陇南', 'code' => '0514', 'city_id' => 285294], ...], [], 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
0514
POST Dataempty
Filesempty
Cookiesempty
Session
www
{ "login": { "location": { "city": "\u9647\u5357", "code": "0514", "city_id": 285294 } } }
Server/Request Data
UNIQUE_ID
XfR0Cz63x5Sk3CrGcC80aQAAAA4
HTTP_REMOTEIP
23.80.135.67
HTTP_HOST
www.ebd120.com
HTTP_X_FORWARDED_FOR
23.80.135.67
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.219
SERVER_PORT
80
REMOTE_ADDR
100.97.135.147
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
43041
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
city=0514
REQUEST_URI
/?city=0514
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1576301579.981
REQUEST_TIME
1576301579
Environment Variablesempty
ThinkPHP Constants
SERVER_IP_ADDR
10.90.14.219
AOP_SDK_WORK_DIR
/data/ebd120_website/runtime/temp/
AOP_SDK_DEV_MODE
true