[8] ErrorException in Unit.php line 178

未定义数组索引: pid

  1. $model['show']['content'] = str_ireplace("http://*************","",$model['show']['content']);
  2. $model['show']['content'] = str_replace("192-168-66-33","",$model['show']['content']);
  3. $model['show']['content'] = str_replace("https://.webvpn.hljszy.org.cn","",$model['show']['content']);
  4. $model['show']['content'] = str_replace("//ueditor","/ueditor",$model['show']['content']);
  5. $model['show']['content'] = str_replace("https://www.hljszy.org.cn/","/",$model['show']['content']);
  6. $model['on'] = db::name('unit')->where("is_del=0 and checkinfo=1 and pid=".$model['show']['pid']." and create_time>".$model['show']['create_time'])->order('create_time asc,id asc')->find();
  7. $model['under'] = db::name('unit')->where("is_del=0 and checkinfo=1 and pid=".$model['show']['pid']." and create_time<".$model['show']['create_time'])->order('create_time desc,id desc')->find();
  8. return $this->fetch("teacher_show",["model" => $model]);
  9. }
  10. public function dynamic_lists(){

Call Stack

  1. in Unit.php line 178
  2. at Error::appError(8, 'Undefined index: pid', '/www/wwwroot/192.168...', 178, ['data' => ['classid' => 35, 'pid' => 10, 'id' => 3031], 'model' => ['parent' => [['id' => 9, 'cid' => 10, 'pid' => 35, ...], ['id' => 10, 'cid' => 10, 'pid' => 35, ...], ['id' => 11, 'cid' => 10, 'pid' => 35, ...], ...], 'banner_show' => null, 'banner' => [['id' => 36, 'pid' => 35, 'navname' => '系部概况', ...], ['id' => 37, 'pid' => 35, 'navname' => '专业特色', ...], ['id' => 38, 'pid' => 35, 'navname' => '师资队伍', ...], ...], ...]]) in Unit.php line 178
  3. at Unit->teacher_show()
  4. at ReflectionMethod->invokeArgs(object(Unit), []) in App.php line 343
  5. at App::invokeMethod([object(Unit), 'teacher_show'], []) in App.php line 611
  6. at App::module(['index', 'unit', 'teacher_show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'unit', 'teacher_show'], 'convert' => false], ['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('/www/wwwroot/192.168...') in index.php line 17

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/192.168.66.90/public/index.php
QUERY_STRING
s=//index/unit_teacher_show/classid/35/pid/10/id/3031.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/unit_teacher_show/classid/35/pid/10/id/3031.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/192.168.66.90/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.26.2
REMOTE_ADDR
219.143.7.10
REMOTE_PORT
43033
SERVER_ADDR
10.10.10.238
SERVER_PORT
443
SERVER_NAME
192.168.66.54
REDIRECT_STATUS
200
HTTP_HOST
hljszy.org.cn
PATH_INFO
//index/unit_teacher_show/classid/35/pid/10/id/3031.html
HTTP_CLIENT_IP
2600:1f28:365:80b0:dba5:8e4d:e15:ea10
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_IF_MODIFIED_SINCE
Tue, 16 Dec 2025 11:33:55 GMT
HTTP_ACCEPT_ENCODING
br, gzip
HTTP_X_FORWARDED_FOR
2600:1f28:365:80b0:dba5:8e4d:e15:ea10
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1789591026.3384
REQUEST_TIME
1789591026
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/192.168.66.90/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1789591026.3388
THINK_START_MEM
263072
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/192.168.66.90/thinkphp/
LIB_PATH
/www/wwwroot/192.168.66.90/thinkphp/library/
CORE_PATH
/www/wwwroot/192.168.66.90/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/192.168.66.90/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/192.168.66.90/
EXTEND_PATH
/www/wwwroot/192.168.66.90/extend/
VENDOR_PATH
/www/wwwroot/192.168.66.90/vendor/
RUNTIME_PATH
/www/wwwroot/192.168.66.90/runtime/
LOG_PATH
/www/wwwroot/192.168.66.90/runtime/log/
CACHE_PATH
/www/wwwroot/192.168.66.90/runtime/cache/
TEMP_PATH
/www/wwwroot/192.168.66.90/runtime/temp/
CONF_PATH
/www/wwwroot/192.168.66.90/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
PC_PATH
/public/
STATIC_PATH
/public/static/
UPLOADS_PATH
/public/uploads/