[404] Exception in Index.php line 149

栏目不存在!

  1. if ($category['setting']['show_template'] == 'show.html') {
  2. $this->error('内容不存在!');
  3. }
  4. $catid = $category['catid'] = $category['id'];
  5. unset($category['id']);
  6. // 模型ID
  7. $modelid = $category['modelid'];
  8. $modelInfo = cache('Model')[$modelid];
  9. if (empty($modelInfo)) {
  10. throw new \think\Exception('栏目不存在!', 404);
  11. }
  12. // 内容所有字段
  13. $ifcache = $this->cmsConfig['site_cache_time'] ? $this->cmsConfig['site_cache_time'] : false;
  14. if (empty($id) && !empty($uxurl)) {
  15. $info = $this->Cms_Model->getContent($modelid, "uxurl='{$uxurl}'", true, '*', '', $ifcache);
  16. } else {
  17. $info = $this->Cms_Model->getContent($modelid, "id={$id}", true, '*', '', $ifcache);
  18. }
  19. $id = $info['id'];

Call Stack

  1. in Index.php line 149
  2. at Index->shows()
  3. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  4. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['mod' => 'view', 'aid' => '427', 'catdir' => 'stock', ...]) in Module.php line 136
  5. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  6. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  7. at Middleware->think\{closure}(object(Request))
  8. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  9. at Middleware->dispatch(object(Request), 'controller') in Module.php line 141
  10. at Module->exec() in Dispatch.php line 168
  11. at Dispatch->run() in App.php line 432
  12. at App->think\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request)) in App.php line 435
  17. at App->run() in index.php line 23

Environment Variables

GET Data
mod view
aid 427
POST Dataempty
Filesempty
Cookies
must_reading VFZST09HWkZNWEZSV0U1UFZrWnNlbFJyVWtKak1ERnhWVmhPVG1Wc1JucFVXR3d6VFVVNVZHUXpjRTlsV0dONVZFVlNVazFyZUVWVFZFcE5Va1V4TmxSRlVsWk5SWGhGVkZSR1RWSkdWVEJVUlZKU1l6QTFWVk5ZVGs1aFdHUTJWRzFzTTAxVk1WUmtNMnhRVlROak1GUkZVa1pPVlhoRlZWaG9UVkpGYTNoVVJWSkdZekF4TmxKWVRrNWhiV1I2VkZkd1RtTXdNVFpSV0U1UFpWaGtOVlJ1YkRObGF6bFVaSHBHVDJWWVpEWlVNRTR6WlZVeGJsQlVNRDBzVFZSU09HWkZNVFZrZWtKTlVrWldlbFJYWXpsUVVUMDlMRTB6ZURoVVYyd3paVVY0UldGNlJrMVNSbXg2VkZaU2NtTXdOVlJrTTJoT1VUTmtORlJYYkRObFZURkVaRE5vVDFVelpEVlVWazR6WlVVeE5XUjZVazFTUlZWNVZFVlNTazFGZUVWaE0wNU9Wa1ZXZWxSWGNGWmpNREZWV2pOT1RtVllaRFJVYm13elpVVTFRbEJVTUQwPXx8MjAyNDAy
PHPSESSID l9bm7hrfmglt6eqg8vmk9rjpc0
VjWe_2132_onlineindex 1
VjWe_2132_home_readfeed 1705176642
VjWe_2132__refer %2F%2Fhome.php%3Fmod%3Dspacecp%26ac%3Dfavorite%26type%3Darticle%26id%3D109%26handlekey%3Dfavoritearticlehk_109
Sessionempty
Server/Request Data
DOCUMENT_ROOT /usr/home/wh-axhdr1yep15wz3z2rd0/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
HTTP_COOKIE must_reading=VFZST09HWkZNWEZSV0U1UFZrWnNlbFJyVWtKak1ERnhWVmhPVG1Wc1JucFVXR3d6VFVVNVZHUXpjRTlsV0dONVZFVlNVazFyZUVWVFZFcE5Va1V4TmxSRlVsWk5SWGhGVkZSR1RWSkdWVEJVUlZKU1l6QTFWVk5ZVGs1aFdHUTJWRzFzTTAxVk1WUmtNMnhRVlROak1GUkZVa1pPVlhoRlZWaG9UVkpGYTNoVVJWSkdZekF4TmxKWVRrNWhiV1I2VkZkd1RtTXdNVFpSV0U1UFpWaGtOVlJ1YkRObGF6bFVaSHBHVDJWWVpEWlVNRTR6WlZVeGJsQlVNRDBzVFZSU09HWkZNVFZrZWtKTlVrWldlbFJYWXpsUVVUMDlMRTB6ZURoVVYyd3paVVY0UldGNlJrMVNSbXg2VkZaU2NtTXdOVlJrTTJoT1VUTmtORlJYYkRObFZURkVaRE5vVDFVelpEVlVWazR6WlVVeE5XUjZVazFTUlZWNVZFVlNTazFGZUVWaE0wNU9Wa1ZXZWxSWGNGWmpNREZWV2pOT1RtVllaRFJVYm13elpVVTFRbEJVTUQwPXx8MjAyNDAy; PHPSESSID=l9bm7hrfmglt6eqg8vmk9rjpc0; VjWe_2132_onlineindex=1; VjWe_2132_home_readfeed=1705176642; VjWe_2132__refer=%252F%252Fhome.php%253Fmod%253Dspacecp%2526ac%253Dfavorite%2526type%253Darticle%2526id%253D109%2526handlekey%253Dfavoritearticlehk_109
HTTP_HOST www.szhittech.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)
PATH /bin
PHPRC /var/www/php74/hichina_ini/wh-axhdr1yep15wz3z2rd0
QUERY_STRING mod=view&aid=427
REDIRECT_DOCUMENT_ROOT /usr/home/wh-axhdr1yep15wz3z2rd0/htdocs
REDIRECT_GATEWAY_INTERFACE CGI/1.1
REDIRECT_HTTPS on
REDIRECT_HTTP_ACCEPT */*
REDIRECT_HTTP_ACCEPT_ENCODING gzip
REDIRECT_HTTP_COOKIE must_reading=VFZST09HWkZNWEZSV0U1UFZrWnNlbFJyVWtKak1ERnhWVmhPVG1Wc1JucFVXR3d6VFVVNVZHUXpjRTlsV0dONVZFVlNVazFyZUVWVFZFcE5Va1V4TmxSRlVsWk5SWGhGVkZSR1RWSkdWVEJVUlZKU1l6QTFWVk5ZVGs1aFdHUTJWRzFzTTAxVk1WUmtNMnhRVlROak1GUkZVa1pPVlhoRlZWaG9UVkpGYTNoVVJWSkdZekF4TmxKWVRrNWhiV1I2VkZkd1RtTXdNVFpSV0U1UFpWaGtOVlJ1YkRObGF6bFVaSHBHVDJWWVpEWlVNRTR6WlZVeGJsQlVNRDBzVFZSU09HWkZNVFZrZWtKTlVrWldlbFJYWXpsUVVUMDlMRTB6ZURoVVYyd3paVVY0UldGNlJrMVNSbXg2VkZaU2NtTXdOVlJrTTJoT1VUTmtORlJYYkRObFZURkVaRE5vVDFVelpEVlVWazR6WlVVeE5XUjZVazFTUlZWNVZFVlNTazFGZUVWaE0wNU9Wa1ZXZWxSWGNGWmpNREZWV2pOT1RtVllaRFJVYm13elpVVTFRbEJVTUQwPXx8MjAyNDAy; PHPSESSID=l9bm7hrfmglt6eqg8vmk9rjpc0; VjWe_2132_onlineindex=1; VjWe_2132_home_readfeed=1705176642; VjWe_2132__refer=%252F%252Fhome.php%253Fmod%253Dspacecp%2526ac%253Dfavorite%2526type%253Darticle%2526id%253D109%2526handlekey%253Dfavoritearticlehk_109
REDIRECT_HTTP_HOST www.szhittech.com
REDIRECT_HTTP_USER_AGENT Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)
REDIRECT_PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO stock/portal.php
REDIRECT_PATH_TRANSLATED redirect:/index.php
REDIRECT_QUERY_STRING mod=view&aid=427
REDIRECT_REMOTE_ADDR 107.158.194.2
REDIRECT_REMOTE_PORT 38432
REDIRECT_REQUEST_METHOD GET
REDIRECT_REQUEST_URI //stock/portal.php?mod=view&aid=427
REDIRECT_SCRIPT_FILENAME /usr/home/wh-axhdr1yep15wz3z2rd0/htdocs/stock
REDIRECT_SCRIPT_NAME /stock
REDIRECT_SERVER_ADDR 172.17.236.186
REDIRECT_SERVER_ADMIN webmaster@wh-axhdr1yep15wz3z2rd0.my3w.com
REDIRECT_SERVER_NAME www.szhittech.com
REDIRECT_SERVER_PORT 443
REDIRECT_SERVER_PROTOCOL HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE Apache
REDIRECT_SSL_TLS_SNI www.szhittech.com
REDIRECT_STATUS 200
REDIRECT_TZ Asia/Shanghai
REDIRECT_UNIQUE_ID Zd-4gawR7LoADtyoVFgAAAAq
REDIRECT_URL /stock/portal.php
REMOTE_ADDR 107.158.194.2
REMOTE_PORT 38432
REQUEST_METHOD GET
REQUEST_URI //stock/portal.php?mod=view&aid=427
SCRIPT_FILENAME /usr/home/wh-axhdr1yep15wz3z2rd0/htdocs/index.php
SCRIPT_NAME /index.php
SERVER_ADDR 172.17.236.186
SERVER_ADMIN webmaster@wh-axhdr1yep15wz3z2rd0.my3w.com
SERVER_NAME www.szhittech.com
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SSL_TLS_SNI www.szhittech.com
TZ Asia/Shanghai
UNIQUE_ID Zd-4gawR7LoADtyoVFgAAAAq
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1709176961.1002
REQUEST_TIME 1709176961
Environment Variablesempty
ThinkPHP Constants
UX_ADMIN_URL @growthman1688
ROOT_PATH /usr/home/wh-axhdr1yep15wz3z2rd0/htdocs/
APP_PATH /usr/home/wh-axhdr1yep15wz3z2rd0/htdocs/application/
DS /
ADDON_PATH /usr/home/wh-axhdr1yep15wz3z2rd0/htdocs/addons/
ROOT_URL /
TEMPLATE_PATH /usr/home/wh-axhdr1yep15wz3z2rd0/htdocs/templates/
WEBSCAN_U_KEY fe6f9a5a18ffc667373f461bc9379d2c
WEBSCAN_API_LOG http://safe.webscan.360.cn/papi/log/?key=fe6f9a5a18ffc667373f461bc9379d2c
WEBSCAN_UPDATE_FILE http://safe.webscan.360.cn/papi/update/?key=fe6f9a5a18ffc667373f461bc9379d2c
WEBSCAN_VERSION 0.1.2.6
WEBSCAN_MD5 9e5c307374031bfabf49d7ab7e4737c7
FILTER_VALIDATE_BOOL 258
U_IDNA_PROHIBITED_ERROR 66560
U_IDNA_ERROR_START 66560
U_IDNA_UNASSIGNED_ERROR 66561
U_IDNA_CHECK_BIDI_ERROR 66562
U_IDNA_STD3_ASCII_RULES_ERROR 66563
U_IDNA_ACE_PREFIX_ERROR 66564
U_IDNA_VERIFICATION_ERROR 66565
U_IDNA_LABEL_TOO_LONG_ERROR 66566
U_IDNA_ZERO_LENGTH_LABEL_ERROR 66567
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR 66568
U_IDNA_ERROR_LIMIT 66569
U_STRINGPREP_PROHIBITED_ERROR 66560
U_STRINGPREP_UNASSIGNED_ERROR 66561
U_STRINGPREP_CHECK_BIDI_ERROR 66562
IDNA_DEFAULT 0
IDNA_ALLOW_UNASSIGNED 1
IDNA_USE_STD3_RULES 2
IDNA_CHECK_BIDI 4
IDNA_CHECK_CONTEXTJ 8
IDNA_NONTRANSITIONAL_TO_ASCII 16
IDNA_NONTRANSITIONAL_TO_UNICODE 32
INTL_IDNA_VARIANT_2003 0
INTL_IDNA_VARIANT_UTS46 1
IDNA_ERROR_EMPTY_LABEL 1
IDNA_ERROR_LABEL_TOO_LONG 2
IDNA_ERROR_DOMAIN_NAME_TOO_LONG 4
IDNA_ERROR_LEADING_HYPHEN 8
IDNA_ERROR_TRAILING_HYPHEN 16
IDNA_ERROR_HYPHEN_3_4 32
IDNA_ERROR_LEADING_COMBINING_MARK 64
IDNA_ERROR_DISALLOWED 128
IDNA_ERROR_PUNYCODE 256
IDNA_ERROR_LABEL_HAS_DOT 512
IDNA_ERROR_INVALID_ACE_LABEL 1024
IDNA_ERROR_BIDI 2048
IDNA_ERROR_CONTEXTJ 4096
HTMLPURIFIER_PREFIX /usr/home/wh-axhdr1yep15wz3z2rd0/htdocs/vendor/ezyang/htmlpurifier/library
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256
XML 地图