天游ty8线路检测中心登录(中国)有限公司

[8] ErrorException in Hit.php line 15

未定义数组索引: id

  1. class Hit extends Controller
  2. {
  3. public function index(){
  4. $data = input('get.');
  5. $ip = request()->ip();
  6. $module = addslashes($data['module']); //模型
  7. $mid = addslashes($data['mid']); //模型id
  8. $action = addslashes($data['action']);//方法
  9. $id = addslashes($data['id']);//祥情页id
  10. $cid = addslashes($data['cid']);//cid
  11. //点击有效间隔时间 n秒
  12. $time = config()['myset']['countHit_time'];
  13. if($time>0){
  14. if(Cache::tag('hit')->get('hit-'.$ip.$mid.$cid.$id) == 1){

Call Stack

  1. in Hit.php line 15
  2. at Error::appError() in Hit.php line 15
  3. at Hit->index()
  4. at ReflectionMethod->invokeArgs() in Container.php line 395
  5. at Container->invokeReflectMethod() in Module.php line 131
  6. at Module->think\route\dispatch\{closure}()
  7. at call_user_func_array() in Middleware.php line 185
  8. at Middleware->think\{closure}()
  9. at call_user_func() in Middleware.php line 130
  10. at Middleware->dispatch() in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}()
  14. at call_user_func_array() in Middleware.php line 185
  15. at Middleware->think\{closure}()
  16. at call_user_func() in Middleware.php line 130
  17. at Middleware->dispatch() in App.php line 435
  18. at App->run() in index.php line 36

Environment Variables

GET Data
action index
mid 4
module contact
POST Dataempty
Filesempty
Cookies
PHPSESSID hm1ao4iq3fu35deukmr1gbrdnl
lang def
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=hm1ao4iq3fu35deukmr1gbrdnl; lang=def
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.sctpcb.net
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.sctpcb.net
SERVER_PORT 443
SERVER_ADDR 10.1.24.8
REMOTE_PORT 35970
REMOTE_ADDR 209.73.153.10
SERVER_SOFTWARE nginx/1.24.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.sctpcb.net
DOCUMENT_URI /index.php
REQUEST_URI /admin/hit/index?action=index&mid=4&module=contact
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/admin/hit/index&action=index&mid=4&module=contact
SCRIPT_FILENAME /www/wwwroot/www.sctpcb.net/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1730421552.062
REQUEST_TIME 1730421552
Environment Variablesempty
ThinkPHP Constantsempty