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

[8] ErrorException in Products.php line 165

未定义数组索引: goods_id

  1. $template = $this->template_pub.'products.html';
  2. return $this->fetch($template);
  3. }
  4. public function products_show()
  5. {
  6. $params = input('param.');
  7. $where_g[] = ['is_delete','=',0];
  8. $where_g[] = ['is_on_sale','=',1];
  9. $where_g[] = ['goods_id','=',$params['goods_id']];
  10. $products_info = Db::name('goods')->field("*")->where($where_g)->order('sort_order ASC,goods_id DESC')->find();
  11. $cat_id = $products_info['cat_ids'];
  12. if($this->lang == "en"){
  13. $products_info['goods_name'] = $products_info['goods_name_en'];

Call Stack

  1. in Products.php line 165
  2. at Error::appError(8, 'Undefined index: goo...', 'D:\wwwroot\maite\www...', 165, ['params' => ['lang' => 'en'], 'where_g' => [['is_delete', '=', 0], ['is_on_sale', '=', 1]]]) in Products.php line 165
  3. at Products->products_show()
  4. at ReflectionMethod->invokeArgs(object(Products), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Products), object(ReflectionMethod), ['lang' => 'en']) 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 en
POST Dataempty
Filesempty
Cookies
PHPSESSID 9kfjbvdf8q16ubpq1u1hqdl839
Session
admin { "lang": "en" }
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-9b2ef3cf-5468-4d30-9874-0c55219a863b
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_show/goods_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_show/goods_id/?lang=en
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 51577
REMOTE_HOST 127.0.0.1
REMOTE_ADDR 127.0.0.1
QUERY_STRING lang=en
PATH_TRANSLATED D:\wwwroot\maite\wwwroot\index.php\index\products\products_show\goods_id\
PATH_INFO /index/products/products_show/goods_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_show/goods_id/?lang=en
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /index/products/products_show/goods_id/?lang=en
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_show/goods_id/
REQUEST_TIME_FLOAT 1668861009.372
REQUEST_TIME 1668861009
Environment Variablesempty
ThinkPHP Constantsempty