[8] ErrorException in Hit.php line 13

未定义数组索引: mid

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

Call Stack

  1. in Hit.php line 13
  2. at Error::appError() in Hit.php line 13
  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
module news
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER
HTTP_ACCEPT */*
HTTP_USER_AGENT Baiduspider+(+http://www.baidu.com/search/spider.htm")
HTTP_HOST www.videochaterotico.net
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.videochaterotico.net
SERVER_PORT 80
SERVER_ADDR 10.0.12.12
REMOTE_PORT 43512
REMOTE_ADDR 43.230.168.250
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.videochaterotico.net
DOCUMENT_URI /index.php
REQUEST_URI /admin/hit/index?module=news
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/admin/hit/index&module=news
SCRIPT_FILENAME /www/wwwroot/www.videochaterotico.net/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1714249880.2424
REQUEST_TIME 1714249880
Environment Variablesempty
ThinkPHP Constantsempty