[8] ErrorException in Index.php line 141

未定义数组索引: name

  1. return $this->fetch('',['banner'=>$banner,'tel'=>$tel,'yptel'=>$yptel,'yttel'=>$yttel,'yltel'=>$yltel,'lptel'=>$lptel,'lttel'=>$lttel,'lltel'=>$lltel,'dptel'=>$dptel,'dttel'=>$dttel,'dltel'=>$dltel,'yzf'=>$yzf,'lzf'=>$lzf,'dzf'=>$dzf,'newstel'=>$newstel,'ytels'=>$ytels,'zimage1'=>$zimage1,'yimage'=>$yimage,'limage'=>$limage,'dimage'=>$dimage,'limit'=>$limit,'page'=>$page,'see_tel'=>$see_tel]);
  2. }
  3. public function show_tel(){
  4. $this->ltel();
  5. $show_tel=db('goods')->field('id,name,operator_type_id,city_id,money1,money2,zifei,beizhu,jieshao')->where(['id'=>input('id')])->find();
  6. $show_tel['name1']=substr($show_tel['name'] , 0 , 3);
  7. $show_tel['name2']=substr($show_tel['name'] , 3 , 4);
  8. $show_tel['name3']=substr($show_tel['name'] , 7 , 4);
  9. $show_tel['operator']=db('tel_type')->field('name')->where(['id'=>$show_tel['operator_type_id']])->find()['name'];
  10. $show_tel['city']=db('region')->field('name')->where(['id'=>$show_tel['city_id']])->find()['name'];
  11. $show_tel['money']=$show_tel['money1']+$show_tel['money2'];
  12. //获取ip
  13. $ip = $_SERVER['REMOTE_ADDR'];
  14. $see=db('see')->field('id,click')->where(['ip'=>$ip,'tel_id'=>$show_tel['id']])->find();
  15. if($see){
  16. //增加浏览次数

Call Stack

  1. in Index.php line 141
  2. at Error::appError(8, 'Undefined index: nam...', 'D:\freehost\hytlhw\w...', 141, ['show_tel' => ['name1' => false]]) in Index.php line 141
  3. at Index->show_tel()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 197
  5. at App::invokeMethod([object(Index), 'show_tel'], []) in App.php line 413
  6. at App::module(['index', 'index', 'show_tel'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 296
  7. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'show_tel']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  8. at App::run() in start.php line 18
  9. at require('D:\freehost\hytlhw\w...') in index.php line 25

Exception Datas

Error Context
show_tel
{ "name1": false }

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-cbcb251a-ab0c-4297-be04-b1b85c6fab91
PHP_FCGI_MAX_REQUESTS
10000
PHPRC
c:\php\5.6
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\10_FreeHost_3\10_FreeHost_3.config
APP_POOL_ID
10_FreeHost_3
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WIN-KIM1B75K7BI
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
28
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\MySQL\MySQL Server 5.5\bin;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3f02
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-KIM1B75K7BI$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
windows_tracing_flags
3
windows_tracing_logfile
C:\BVTBin\Tests\installpackage\csilogfile.log
ORIG_PATH_INFO
/index.php
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/7.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
hytlhw.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
d:\freehost\hytlhw\web\index.php
REQUEST_URI
/index/index/show_tel/id/5751
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
20000
REMOTE_HOST
156.238.84.156
REMOTE_ADDR
156.238.84.156
QUERY_STRING
s=index/index/show_tel/id/5751
PATH_TRANSLATED
d:\freehost\hytlhw\web\index.php
LOGON_USER
LOCAL_ADDR
221.204.11.203
INSTANCE_META_PATH
/LM/W3SVC/63333000
INSTANCE_NAME
HYTLHW.BJ.LCWEB01.CN_HYTLHW_XALONGCAI
INSTANCE_ID
63333000
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
d:\freehost\hytlhw\web
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:\freehost\hytlhw\web\
APPL_MD_PATH
/LM/W3SVC/63333000/ROOT
IIS_UrlRewriteModule
7.1.1952.0
UNENCODED_URL
/index/index/show_tel/id/5751
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/index/index/show_tel/id/5751
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
hytlhw.com
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1573748063.3532
REQUEST_TIME
1573748063
PATH_INFO
index/index/show_tel/id/5751
Environment Variables
empty

ThinkPHP Constants

__PUBLIC__
/public
APP_PATH
D:\freehost\hytlhw\web/application/
LOG_PATH_ADMIN
D:\freehost\hytlhw\web/runtime/log/admin/
LOG_PATH_HOME
D:\freehost\hytlhw\web/runtime/log/admin/
THINK_VERSION
5.0.12
THINK_START_TIME
1573748063.3532
THINK_START_MEM
153288
EXT
.php
DS
\
THINK_PATH
D:\freehost\hytlhw\web\thinkphp\
LIB_PATH
D:\freehost\hytlhw\web\thinkphp\library\
CORE_PATH
D:\freehost\hytlhw\web\thinkphp\library\think\
TRAIT_PATH
D:\freehost\hytlhw\web\thinkphp\library\traits\
ROOT_PATH
D:\freehost\hytlhw\web\
EXTEND_PATH
D:\freehost\hytlhw\web\extend\
VENDOR_PATH
D:\freehost\hytlhw\web\vendor\
RUNTIME_PATH
D:\freehost\hytlhw\web\runtime\
LOG_PATH
D:\freehost\hytlhw\web\runtime\log\
CACHE_PATH
D:\freehost\hytlhw\web\runtime\cache\
TEMP_PATH
D:\freehost\hytlhw\web\runtime\temp\
CONF_PATH
D:\freehost\hytlhw\web/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true