[8] ErrorException in Department.php line 60

未定义数组下标: 0

  1. $json = json_encode(["type" =>'WZ', "dept_code" => $id]);
  2. //服务标识
  3. $FunCode = 'clinic_label_info_zzj_wz';
  4. //api地址
  5. $apiurl = config("apiUrl").$FunCode.'&version='.config("version").'&formatType=JSON';
  6. //回调信息
  7. $res = httpsPostCode($apiurl,$json);
  8. $res = json_decode($res);
  9. $data = $res->responseData->deptList[0];
  10. $this->assign('title', "科室介绍");
  11. $this->assign('category', $this->category());
  12. $this->assign('data', $data);
  13. return $this->view->fetch();
  14. }
  15. public function index_bak()
  16. {

Call Stack

  1. in Department.php line 60
  2. at Error::appError(8, 'Undefined offset: 0', 'D:\wwwroot\www.ysyiy...', 60, ['request' => object(Request), 'id' => '24', 'json' => '{"type":"WZ","dept_c...', ...]) in Department.php line 60
  3. at Department->content()
  4. at ReflectionMethod->invokeArgs(object(Department), []) in App.php line 343
  5. at App::invokeMethod([object(Department), 'content'], []) in App.php line 611
  6. at App::module(['index', 'department', 'content'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'department', 'content']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('D:\wwwroot\www.ysyiy...') in index.php line 23

Environment Variables

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

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-ff13f942-2b3a-44a3-9be9-1b6af2ce580d
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\www.ysxrmyy.com\www.ysxrmyy.com.config
APP_POOL_ID
www.ysxrmyy.com
BT_PANEL
D:\BtSoft\panel
BT_PYTHON
C:\Program Files\python
BT_SETUP
D:\BtSoft
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
VM231
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 5, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5505
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
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
UNRAR_LIB_PATH
C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN
WORKGROUP
USERNAME
VM231$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/department/content/pid/38/id/24.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.ysxrmyy.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
d:\wwwroot\www.ysxrmyy.com\public\index.php
REQUEST_URI
/department/content/pid/38/id/24.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
56458
REMOTE_HOST
23.224.20.170
REMOTE_ADDR
23.224.20.170
QUERY_STRING
PATH_TRANSLATED
d:\wwwroot\www.ysxrmyy.com\public\index.php\department\content\pid\38\id\24.html
PATH_INFO
/department/content/pid/38/id/24.html
LOGON_USER
LOCAL_ADDR
10.0.2.173
INSTANCE_META_PATH
/LM/W3SVC/2
INSTANCE_NAME
WWW.ysxrmyy.com
INSTANCE_ID
2
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
d:\wwwroot\www.ysxrmyy.com\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:\wwwroot\www.ysxrmyy.com\public\
APPL_MD_PATH
/LM/W3SVC/2/ROOT
IIS_UrlRewriteModule
7.1.0871.0
UNENCODED_URL
/department/content/pid/38/id/24.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/department/content/pid/38/id/24.html
HTTP_CLIENT_IP
44.192.94.177
HTTP_X_FORWARDED_FOR
44.192.94.177
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
HTTP_REFERER
http://www.ysxrmyy.com/
HTTP_HOST
www.ysxrmyy.com
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
HTTP_CONNECTION
keep-alive
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/department/content/pid/38/id/24.html
REQUEST_TIME_FLOAT
1721513700.0448
REQUEST_TIME
1721513700
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\www.ysxrmyy.com\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1721513700.0456
THINK_START_MEM
429872
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\www.ysxrmyy.com\thinkphp\
LIB_PATH
D:\wwwroot\www.ysxrmyy.com\thinkphp\library\
CORE_PATH
D:\wwwroot\www.ysxrmyy.com\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\www.ysxrmyy.com\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\www.ysxrmyy.com\
EXTEND_PATH
D:\wwwroot\www.ysxrmyy.com\extend\
VENDOR_PATH
D:\wwwroot\www.ysxrmyy.com\vendor\
RUNTIME_PATH
D:\wwwroot\www.ysxrmyy.com\runtime\
LOG_PATH
D:\wwwroot\www.ysxrmyy.com\runtime\log\
CACHE_PATH
D:\wwwroot\www.ysxrmyy.com\runtime\cache\
TEMP_PATH
D:\wwwroot\www.ysxrmyy.com\runtime\temp\
CONF_PATH
D:\wwwroot\www.ysxrmyy.com\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
FILTER_VALIDATE_BOOL
258
ADDON_PATH
D:\wwwroot\www.ysxrmyy.com\addons\