贝斯特官网(中国)有限公司

[8] ErrorException in Total.php line 104

未定义数组下标: 1

  1. $exp[1] = $opera[1];
  2. } elseif (stripos($sys, 'Edge') > 0) {
  3. //win10 Edge浏览器 添加了chrome内核标记 在判断Chrome之前匹配
  4. preg_match('/Edge\/([\d\.]+)/', $sys, $Edge);
  5. $exp[0] = 'Edge';
  6. $exp[1] = $Edge[1];
  7. } elseif (stripos($sys, 'Chrome') > 0) {
  8. preg_match('/Chrome\/([\d\.]+)/', $sys, $google);
  9. $exp[0] = 'Chrome';
  10. $exp[1] = $google[1];
  11. //获取google chrome的版本号
  12. } elseif (stripos($sys, 'Safari') > 0) {
  13. preg_match('/Safari\/([^\s]+)/i', $sys, $safari);
  14. $exp[0] = 'Safari';
  15. $exp[1] = $safari[1];
  16. } elseif (stripos($sys, 'rv:') > 0 && stripos($sys, 'Gecko') > 0) {
  17. preg_match('/rv:([\d\.]+)/', $sys, $IE);
  18. $exp[0] = 'IE';
  19. $exp[1] = $IE[1];

Call Stack

  1. in Total.php line 104
  2. at Error::appError(8, 'Undefined offset: 1', 'E:\wwwroot\chdcjx.co...', 104, ['sys' => 'mozilla/5.0 (iphone;...', 'exp' => ['Chrome'], 'google' => []]) in Total.php line 104
  3. at Total->get_user_browser('mozilla/5.0 (iphone;...') in Total.php line 52
  4. at Total->get_message_total() in Common.php line 132
  5. at Common->initialize() in Controller.php line 68
  6. at Controller->__construct(object(App))
  7. at ReflectionClass->newInstanceArgs([object(App)]) in Container.php line 439
  8. at Container->invokeClass('app\index\controller...', []) in Container.php line 284
  9. at Container->make('app\index\controller...', []) in App.php line 725
  10. at App->controller('product', 'controller', false, 'Error') in Module.php line 94
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID q82sqhbd8d26qmcakfnseb51t4
Sessionempty
Server/Request Data
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\Administrator\AppData\Roaming
CLIENTNAME WIN-9M8VKJTM48G
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME WIN-M004K9U4BFM
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
HOMEDRIVE C:
HOMEPATH \Users\Administrator
LOCALAPPDATA C:\Users\Administrator\AppData\Local
LOGONSERVER \\WIN-M004K9U4BFM
NUMBER_OF_PROCESSORS 8
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 3e04
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC C:\Users\Public
SESSIONNAME RDP-Tcp#0
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Users\ADMINI~1\AppData\Local\Temp\2
TMP C:\Users\ADMINI~1\AppData\Local\Temp\2
USERDOMAIN WIN-M004K9U4BFM
USERNAME Administrator
USERPROFILE C:\Users\Administrator
windir C:\Windows
HTTP_COOKIE PHPSESSID=q82sqhbd8d26qmcakfnseb51t4
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_USER_AGENT mozilla/5.0 (iphone; cpu iphone os 9_1_4; like mac os x) applewebkit/600.23 (khtml, like gecko) chrome/51.0.3404.266 mobile safari/600.7
HTTP_CONNECTION close
HTTP_X_FORWARDED_FOR 107.158.234.218
HTTP_X_REAL_IP 107.158.234.218
HTTP_HOST www.ggtuning.com
REDIRECT_STATUS 200
SERVER_NAME 127.0.0.1
SERVER_PORT 8008
SERVER_ADDR 192.168.0.15
REMOTE_PORT 51868
REMOTE_ADDR 192.168.0.9
SERVER_SOFTWARE nginx/1.15.11
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.0
DOCUMENT_ROOT E:/wwwroot/ggtuning.com/public
DOCUMENT_URI /index.php
REQUEST_URI /product/pdjpj.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/product/pdjpj.html
PATH_TRANSLATED E:/wwwroot/ggtuning.com/public
PATH_INFO
SCRIPT_FILENAME E:/wwwroot/ggtuning.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1721847504.2725
REQUEST_TIME 1721847504
Environment Variablesempty
ThinkPHP Constants
DS \
APP_PATH E:\wwwroot\ggtuning.com\public/../application/
CONF_PATH E:\wwwroot\ggtuning.com\public/../config/
PUBILC_PATH E:\wwwroot\ggtuning.com\public/
ROOT_PATH E:\wwwroot\ggtuning.com\public
CACHE_PATH E:\wwwroot\ggtuning.com\public/../runtime/
CONFIG_PATH E:\wwwroot\ggtuning.com\public/../config/
UPLOAD_PATH uploads
Baidu
sogou