1. * @param string $msg 异常消息
  2. * @param integer $code 异常代码 默认为0
  3. * @param string $exception 异常类
  4. *
  5. * @throws Exception
  6. */
  7. function exception($msg, $code = 0, $exception = '')
  8. {
  9. $e = $exception ?: '\think\Exception';
  10. throw new $e($msg, $code);
  11. }
  12. }
  13. if (!function_exists('debug')) {
  14. /**
  15. * 记录时间(微秒)和内存使用情况
  16. * @param string $start 开始标签
  17. * @param string $end 结束标签
  18. * @param integer|string $dec 小数位 如果是m 表示统计内存占用

Call Stack

  1. in helper.php line 59
  2. at exception('产品不存在!', 404) in Product.php line 33
  3. at Product->show()
  4. at ReflectionMethod->invokeArgs(object(Product), []) in App.php line 224
  5. at App::invokeMethod([object(Product), 'show'], []) in App.php line 392
  6. at App::module(['index', 'product', 'show'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 130
  7. at App::run() in start.php line 18
  8. at require('/www/wwwroot/citylon...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
2g0dpglai0e7p90k4dvudao5p1
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=2g0dpglai0e7p90k4dvudao5p1
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.citylong.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)
PATH_INFO
/index/product/show/id/7318/type/54.html
REDIRECT_STATUS
200
SERVER_NAME
citylong.com
SERVER_PORT
443
SERVER_ADDR
172.17.245.171
REMOTE_PORT
57960
REMOTE_ADDR
50.2.184.162
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/citylong.com/public_html
DOCUMENT_URI
/index.php
REQUEST_URI
/index/product/show/id/7318/type/54.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/product/show/id/7318/type/54.html
SCRIPT_FILENAME
/www/wwwroot/citylong.com/public_html/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1715393386.4277
REQUEST_TIME
1715393386
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/citylong.com/public_html/../application/
THINK_VERSION
5.0.7
THINK_START_TIME
1715393386.4278
THINK_START_MEM
357992
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/citylong.com/thinkphp/
LIB_PATH
/www/wwwroot/citylong.com/thinkphp/library/
CORE_PATH
/www/wwwroot/citylong.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/citylong.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/citylong.com/
EXTEND_PATH
/www/wwwroot/citylong.com/extend/
VENDOR_PATH
/www/wwwroot/citylong.com/vendor/
RUNTIME_PATH
/www/wwwroot/citylong.com/runtime/
LOG_PATH
/www/wwwroot/citylong.com/runtime/log/
CACHE_PATH
/www/wwwroot/citylong.com/runtime/cache/
TEMP_PATH
/www/wwwroot/citylong.com/runtime/temp/
CONF_PATH
/www/wwwroot/citylong.com/public_html/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.1.3
XML 地图