887700葡京线路检测_官网(欢迎您)

[8] ErrorException in Products.php line 92

未定义数组索引: cat_id

  1. $template = $this->template_pub.'products.html';
  2. return $this->fetch($template);
  3. }
  4. public function products_list()
  5. {
  6. $params = input('param.');
  7. $cat_id = $params['cat_id'];
  8. $where_cat[] = ['cat_id','=',$cat_id];
  9. $cat_name = Db::name('category')->field("*")->where($where_cat)->find();
  10. $cat_name_title = $cat_name['cat_name'];
  11. if($this->lang == "zh-cn"){
  12. $cat_name_title = $cat_name['cat_name'];
  13. }
  14. if($this->lang == "en"){

Call Stack

  1. in Products.php line 92
  2. at Error::appError(8, 'Undefined index: cat...', 'D:\wwwroot\maite\www...', 92, ['params' => ['lang' => 'jp']]) in Products.php line 92
  3. at Products->products_list()
  4. at ReflectionMethod->invokeArgs(object(Products), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Products), object(ReflectionMethod), ['lang' => 'jp']) in Module.php line 132
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  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 21

Environment Variables

GET Data
lang jp
POST Dataempty
Filesempty
Cookies
PHPSESSID 9kfjbvdf8q16ubpq1u1hqdl839
Session
admin { "lang": "jp" }
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-b9e18be9-e1b6-4785-8829-0db5e9ee9139
PHP_FCGI_MAX_REQUESTS 1000
PHPRC C:\php_71
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\maite\maite.config
APP_POOL_ID maite
CommonProgramFiles C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME EBS-6042
ComSpec C:\Windows\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 12
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\php_52;D:\mysql\bin;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_ARCHITEW6432 AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 3e04
ProgramData C:\ProgramData
ProgramFiles C:\Program Files (x86)
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC C:\Users\Public
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Windows\TEMP
TMP C:\Windows\TEMP
USERDOMAIN WORKGROUP
USERNAME EBS-6042$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/index/products/products_list/cat_id/
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/10.0
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME www.nbmight.com
SCRIPT_NAME /index.php
SCRIPT_FILENAME D:\wwwroot\maite\wwwroot\index.php
REQUEST_URI /index/products/products_list/cat_id/?lang=jp
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 61339
REMOTE_HOST 127.0.0.1
REMOTE_ADDR 127.0.0.1
QUERY_STRING lang=jp
PATH_TRANSLATED D:\wwwroot\maite\wwwroot\index.php\index\products\products_list\cat_id\
PATH_INFO /index/products/products_list/cat_id/
LOGON_USER
LOCAL_ADDR 127.0.0.1
INSTANCE_META_PATH /LM/W3SVC/10213
INSTANCE_NAME MAITE
INSTANCE_ID 10213
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT D:\wwwroot\maite\wwwroot
CONTENT_TYPE
CONTENT_LENGTH 0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH D:\wwwroot\maite\wwwroot\
APPL_MD_PATH /LM/W3SVC/10213/ROOT
IIS_UrlRewriteModule 7,1,1993,2336
WEBSOCKET_VERSION 13
UNENCODED_URL /index/products/products_list/cat_id/?lang=jp
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /index/products/products_list/cat_id/?lang=jp
HTTP_X_REAL_IP 104.140.79.250
HTTP_X_FORWARDED_FOR 104.140.79.250
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST www.nbmight.com
HTTP_COOKIE PHPSESSID=9kfjbvdf8q16ubpq1u1hqdl839
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
HTTP_CONNECTION close
FCGI_ROLE RESPONDER
PHP_SELF /index.php/index/products/products_list/cat_id/
REQUEST_TIME_FLOAT 1662539591.5941
REQUEST_TIME 1662539591
Environment Variablesempty
ThinkPHP Constantsempty