[8] ErrorException in Index.php line 230

未定义数组索引: type_id

  1. $where[] = ['id', '=', intval($id)];
  2. $where[] = ['is_show', '=', 'true'];
  3. $data = $this->model->getDetail($where);
  4. if (!empty($data['url'])) {
  5. header('location:' . $data['url']);
  6. exit;
  7. }
  8. $pic = $data['pic_path'] == '/assets/images/no_img.png' ? '' : $data['pic_path'];
  9. $data['pic'] = $pic;
  10. $navs = (new InfoType())->getTypeParent($data['type_id'][0]);
  11. $this->assign('pid', current($navs)['id']);
  12. $this->assign('info', $data);
  13. $this->assign('navs', $navs);
  14. return $this->fetch($this->template . '/detail');
  15. }
  16. }

Call Stack

  1. in Index.php line 230
  2. at Error::appError(8, 'Undefined index: typ...', 'D:\newweb\applicatio...', 230, ['id' => '7104', 'where' => [['id', '=', 7104], ['is_show', '=', 'true']], 'data' => ['pic' => null], ...]) in Index.php line 230
  3. at Index->detail()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => '7104']) in Module.php line 131
  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 136
  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 15

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
think { "site_id": 1, "branch_where_web": [ [ "branch", "like", "%\"1\"%" ] ], "site_info": { "id": 1, "temp_id": 0, "name": "\u9ed8\u8ba4\u7ad9\u70b9", "username": "", "tel": "", "info": null, "add_time": null, "update_time": null, "delete_time": null, "sort": 1, "logo": "", "content": null, "temp": null } }
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-13dda5ea-49c4-453a-b76e-4a4279d17eae
PHPRC D:\php\php-5.6.9-Win32-VC9-x86 - newweb\
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\newweb\newweb.config
APP_POOL_ID newweb
CommonProgramFiles C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME WIN-FSRNEPNTU9J
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
MYSQL_HOME D:\mysql\mysql-5.6.17-winx64
NUMBER_OF_PROCESSORS 4
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\mysql\mysql-5.6.17-winx64\bin;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;D:\php\php-5.6.9-Win32-VC9-x86 - newweb\;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_ARCHITEW6432 AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 85 Stepping 11, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 550b
ProgramData C:\ProgramData
ProgramFiles C:\Program Files (x86)
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath 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 WIN-FSRNEPNTU9J$
USERPROFILE C:\Windows\system32\config\systemprofile
VS110COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
windir C:\Windows
ORIG_PATH_INFO /index.php/index/detail/id/7104.html
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/7.5
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 8022
SERVER_NAME www.cmnetri.com
SCRIPT_NAME /index.php
SCRIPT_FILENAME D:\newweb\public\index.php
REQUEST_URI /index/detail/id/7104.html
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 57216
REMOTE_HOST 54.227.104.229
REMOTE_ADDR 54.227.104.229
QUERY_STRING
PATH_TRANSLATED D:\newweb\public\index.php\index\detail\id\7104.html
PATH_INFO /index/detail/id/7104.html
LOGON_USER
LOCAL_ADDR 137.12.7.21
INSTANCE_META_PATH /LM/W3SVC/23
INSTANCE_NAME
INSTANCE_ID 23
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT D:\newweb\public
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:\newweb\public\
APPL_MD_PATH /LM/W3SVC/23/ROOT
IIS_UrlRewriteModule 7.1.1952.0
UNENCODED_URL /index/detail/id/7104.html
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /index/detail/id/7104.html
HTTP_USER_AGENT claudebot
HTTP_HOST www.cmnetri.com
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/index/detail/id/7104.html
REQUEST_TIME_FLOAT 1711658301.0055
REQUEST_TIME 1711658301
Environment Variablesempty
ThinkPHP Constants
APP_PATH D:\newweb\public/application/