[8] ErrorException in Index.php line 164

未定义数组下标: 1

  1. $id=input('id');
  2. if (empty($id)) {
  3. echo '<script>window.close();</script>';//关闭当前页
  4. }
  5. $param=explode('-',$id);
  6. if (empty($param[0])||empty($param[1])) {
  7. echo '<script>window.close();</script>';//关闭当前页
  8. }
  9. $where['time']=$param[0];
  10. $where['id']=$param[1];
  11. $appset=db('appset')->where($where)->find();
  12. if (empty($appset)) {
  13. echo '<script>window.close();</script>';//关闭当前页
  14. }
  15. /*统计点击量*/
  16. $date=strtotime(date('Y-m-d'));
  17. $where_2['appid']=['in',$param[1]];
  18. $where_2['date']=['in',$date];
  19. $res=db('appstats2')->where($where_2)->find();

Call Stack

  1. in Index.php line 164
  2. at Error::appError(8, 'Undefined offset: 1', '/www/web/a_517sc_com...', 164, ['id' => null, 'param' => [''], 'where' => ['time' => '']]) in Index.php line 164
  3. at Index->app()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 224
  5. at App::invokeMethod([object(Index), 'app'], []) in App.php line 393
  6. at App::module(['index', 'index', 'app'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 130
  7. at App::run() in start.php line 18
  8. at require('/www/web/a_517sc_com...') in index.php line 17

Exception Datas

Error Context
id Resource
param [ "" ]
where { "time": "" }

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/web/a_517sc_com/public_html/index.php
QUERY_STRING s=/index/index/app.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /index/index/app.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/web/a_517sc_com/public_html
SERVER_PROTOCOL HTTP/2.0
REQUEST_SCHEME https
HTTPS on
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.18.0
REMOTE_ADDR 35.175.236.44
REMOTE_PORT 37896
SERVER_ADDR 103.164.76.188
SERVER_PORT 443
SERVER_NAME a.517sc.com
REDIRECT_STATUS 200
PATH_INFO /index/index/app.html
HTTP_HOST a.517sc.com
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_REFERER https://a.517sc.com/index/index/app/id/1576028812-29.html
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711632776.1114
REQUEST_TIME 1711632776
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/web/a_517sc_com/public_html/../application/
THINK_VERSION 5.0.5
THINK_START_TIME 1711632776.1119
THINK_START_MEM 260088
EXT .php
DS /
THINK_PATH /www/web/a_517sc_com/thinkphp/
LIB_PATH /www/web/a_517sc_com/thinkphp/library/
CORE_PATH /www/web/a_517sc_com/thinkphp/library/think/
TRAIT_PATH /www/web/a_517sc_com/thinkphp/library/traits/
ROOT_PATH /www/web/a_517sc_com/
EXTEND_PATH /www/web/a_517sc_com/extend/
VENDOR_PATH /www/web/a_517sc_com/vendor/
RUNTIME_PATH /www/web/a_517sc_com/runtime/
LOG_PATH /www/web/a_517sc_com/runtime/log/
CACHE_PATH /www/web/a_517sc_com/runtime/cache/
TEMP_PATH /www/web/a_517sc_com/runtime/temp/
CONF_PATH /www/web/a_517sc_com/public_html/../application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false