澳门新葡萄京网址

[8] ErrorException in common.php line 716

未定义数组索引: HTTP_USER_AGENT

  1. return $arr['data'][0]['location'];
  2. }
  3. /*
  4. 方法名称:is_pc;
  5. 作用:判断终端是否是PC
  6. 参数:无
  7. */
  8. function is_pc(){
  9. $agent = strtolower($_SERVER['HTTP_USER_AGENT']);
  10. $res = 1;
  11. // $is_pc = (strpos($agent, 'windows nt')) ? true : false;
  12. $is_iphone = (strpos($agent, 'iphone')) ? true : false;
  13. $is_ipad = (strpos($agent, 'ipad')) ? true : false;
  14. $is_android = (strpos($agent, 'android')) ? true : false;
  15. //输出数据
  16. if($is_iphone||$is_ipad||$is_android){
  17. $res = 0;

Call Stack

  1. in common.php line 716
  2. at Error::appError(8, 'Undefined index: HTT...', '/www/wwwroot/www.wxj...', 716, []) in common.php line 716
  3. at is_pc() in Index.php line 29
  4. at Index->initialize() in Controller.php line 68
  5. at Controller->__construct(object(App))
  6. at ReflectionClass->newInstanceArgs([object(App)]) in Container.php line 439
  7. at Container->invokeClass('app\hdxw\controller\...', []) in Container.php line 284
  8. at Container->make('app\hdxw\controller\...', []) in App.php line 725
  9. at App->controller('index', 'controller', false, 'Error') in Module.php line 95
  10. at Module->exec() in Dispatch.php line 168
  11. at Dispatch->run() in App.php line 432
  12. at App->think\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request)) in App.php line 435
  17. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_HOST lzq.le189.com
HTTP_X_FORWARDED_FOR 156.237.188.90
HTTP_X_REAL_IP 156.237.188.90
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME 122.114.161.122
SERVER_PORT 80
SERVER_ADDR 122.114.161.122
REMOTE_PORT 47251
REMOTE_ADDR 219.150.124.27
SERVER_SOFTWARE nginx/1.15.10
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.0
DOCUMENT_ROOT /www/wwwroot/www.wxjunlan.com/public
DOCUMENT_URI /index.php
REQUEST_URI /hdxw
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/hdxw
SCRIPT_FILENAME /www/wwwroot/www.wxjunlan.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1586344161.4952
REQUEST_TIME 1586344161
Environment Variablesempty
ThinkPHP Constants
QINIU_FUNCTIONS_VERSION 7.2.9