[8] ErrorException in Service.php line 173

未定义变量: next_id

  1. //获取上一篇
  2. if (isset($all_id[$key - 1])) {
  3. $pre_id = $all_id[$key - 1]['id'];
  4. } else {
  5. $pre_id = '';
  6. }
  7. }
  8. }
  9. if ($next_id != '') {
  10. $next_info = Db::name("Products")->field('id,title')->where('isdelete', '0')->where('class', $info['class'])->where("id", $next_id)->find();
  11. } else {
  12. $next_info = '';
  13. }
  14. if ($pre_id != '') {
  15. $pre_info = Db::name("Products")->field('id,title')->where('isdelete', '0')->where('class', $info['class'])->where("id", $pre_id)->find();
  16. } else {
  17. $pre_info = '';

Call Stack

  1. in Service.php line 173
  2. at Error::appError(8, 'Undefined variable: ...', '/mnt/wwwroot/jhc.huu...', 173, ['web_info' => ['id' => 1, 'web_name' => '进化策', 'switch' => 1, ...], 'id' => '17', 'info' => object(Products), ...]) in Service.php line 173
  3. at Service->proInfo()
  4. at ReflectionMethod->invokeArgs(object(Service), []) in App.php line 224
  5. at App::invokeMethod([object(Service), 'proInfo'], []) in App.php line 390
  6. at App::module(['home', 'Service', 'proInfo'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 130
  7. at App::run() in start.php line 18
  8. at require('/mnt/wwwroot/jhc.huu...') in index.php line 18

Exception Datas

Error Context
web_info { "id": 1, "web_name": "\u8fdb\u5316\u7b56", "switch": 1, "domain": "", "web_key": "\u8fdb\u5316\u7b56,\u6d88\u8d39\u884c\u4e3a\u8bbe\u8ba1,\u6d88\u8d39\u884c\u4e3a\u7814\u7a76", "description": "", "web_num": "\u95fdICP\u590716012275\u53f7", "tel": "0592-5785503", "tel2": "", "myqq": "", "myqq2": "", "copright": "©2019 \u53a6\u95e8\u8fdb\u5316\u7b56\u7ba1\u7406\u54a8\u8be2\u6709\u9650\u516c\u53f8 All Rights Reserved. ", "zip_code": "", "email": "info@manage-evo.com", "address": "\u798f\u5efa\u7701\u53a6\u95e8\u5e02\u601d\u660e\u533a\u89c2\u97f3\u5c71\u8425\u8fd0\u4e2d\u5fc37\u53f7\u697c904-1", "en_company": "", "company": "\u53a6\u95e8\u8fdb\u5316\u7b56\u7ba1\u7406\u54a8\u8be2\u6709\u9650\u516c\u53f8", "fox": "", "company_url": "", "sina_blog": "www.baidu.com", "qq_blog": "", "weixin": "", "weixin_img": "images\/er.jpg", "taobao": "", "taobao_img": "images\/er.jpg", "numm": "", "tonji": "", "notice": "", "weibo_img": "images\/er.jpg", "logo_img": "\/public\/attachment\/images\/20210824\/0e4c614606b01dbb5dcd67b5ac380775.png", "e_smtp": "smtp.163.com", "e_mail": "", "e_mail_name": "", "e_pw": "ad54347471", "e_port": 25, "space_size": 7, "limit_size": 400, "video": "", "video_img": "", "multiple": 20, "is_multiple": 0, "s_time": 0, "e_time": 0, "is_gmultiple": 1, "s_gtime": 0, "e_gtime": 0, "m_time": 1551414974, "d_time": 1475164800, "address1": "", "r_tel": "021-80325820\r\n18600071105\uff08\u6295\u8bc9\u4e13\u7528\uff09", "r_email": "jiandu@yango.com.cn", "r_address": "\u4e0a\u6d77\u5e02·\u5317\u5916\u6ee9·\u6768\u6811\u6d66\u8def1058\u53f7\u9633\u5149\u63a7\u80a1\u5927\u53a619\u5c42\u9633\u5149\u63a7\u80a1\u5ba1\u8ba1\u90e8", "r_zipcode": "200086", "r_title": "\u9633\u5149\u5ec9\u6d01\u4e3e\u62a5", "r_content": "\u53d7\u7406\u8303\u56f4\uff1a\u53d7\u7406\u5458\u5de5\u8fdd\u89c4\u8fdd\u7eaa\u884c\u4e3a\u4e3e\u62a5\uff0c\u5176\u4ed6\u6295\u8bc9\u8bf7\u901a\u8fc7\u5ba2\u6237\u670d\u52a1\u89e3\u51b3", "status": 1, "web_num1": "", "isdelete": 0, "r_titleEn": "Hi Class", "r_title1": "11", "wx_img": "\/public\/attachment\/images\/20210826\/e9a0c3ef090eb59a6ad991ea6c389b4a.jpg", "wx_img1": "\/public\/attachment\/images\/20190418\/82f8429df1dda6e0a69f4f6328b2dd33.png", "wx_img2": "\/public\/attachment\/images\/20190418\/a03e00bb5c43838666de9d4d964977bd.jpg", "wx_txt": "\u6296\u97f3", "wx_intro": "", "wx_txt1": "", "wx_intro1": "" }
id 17
info { "hot": "", "id": 17, "class": 23, "title": "\u89e3\u51b3\u65b9\u68484 | \u9500\u552e\u8f6c\u5316\u63d0\u5347", "descs": null, "keywords": "", "intro": "\u89e3\u51b3\u597d\u4ea7\u54c1\u6ca1\u6709\u597d\u5e02\u573a\u7684\u95ee\u9898", "pic": "\/public\/attachment\/images\/20200628\/d1bd5088750318ccbc3cd0b4ac06c186.jpg", "add_time": 1575861897, "status": 1, "is_top": 0, "isdelete": 1, "recommend": 1, "seo_title": "", "description": "", "source": "", "sort": 1, "writer": "\u8fdb\u5316\u7b56", "images": null, "view": 1970, "content": "<p style=\"text-align: center;\"><\/p><p><br\/><\/p><p><br\/><\/p><p><br\/><\/p><p style=\"text-align: center;\"><img title=\"1593397404971158.png\" alt=\"4-1.png\" src=\"\/ueditor\/php\/upload\/image\/20200629\/1593397404971158.png\"\/><\/p><p style=\"text-align: center;\"><img title=\"1593397414373501.png\" alt=\"4-2.png\" src=\"\/ueditor\/php\/upload\/image\/20200629\/1593397414373501.png\"\/><\/p><p style=\"text-align: center;\"><img title=\"1593397423990797.png\" alt=\"4-3.png\" src=\"\/ueditor\/php\/upload\/image\/20200629\/1593397423990797.png\"\/><\/p><p><br\/><\/p><p><br\/><\/p><br\/>", "area_id": 0, "key": "\u6d88\u8d39\u884c\u4e3a\u8bbe\u8ba1,\u9500\u552e\u8f6c\u5316\u63d0\u5347,\u9500\u552e\u8f6c\u5316\u63d0\u5347\u89e3\u51b3\u65b9\u6848", "pic1": "\/public\/attachment\/images\/20200629\/5da0c82bcd245e38d83b4a33079eb02e.jpg", "cate_id": 0 }
class { "id": 23, "name": "\u4ea7\u54c1\u4e0e\u670d\u52a1", "nameEn": "design", "keywords": "", "description": " ", "parent_id": 22, "sort": 0, "url": "", "pic": "", "is_show": 1, "is_home": 0, "is_delete": 0, "thumb": null, "is_hot": 0, "is_common": 0, "isdelete": 0, "content": null, "strsize": null, "intro": null, "inrro1": null, "key": "", "seo_title": "", "images": null, "str1size": null, "key1": null, "is_page": 0, "urlid": 0, "status": 1, "seo_titleEn": null, "descriptionEn": null, "keywordsEn": null }
seo_info { "title": "\u89e3\u51b3\u65b9\u68484 | \u9500\u552e\u8f6c\u5316\u63d0\u5347", "keywords": "\u8fdb\u5316\u7b56,\u6d88\u8d39\u884c\u4e3a\u8bbe\u8ba1,\u6d88\u8d39\u884c\u4e3a\u7814\u7a76", "description": "" }
art_id 17
all_id []

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
/mnt/wwwroot/jhc.huudon.cn/index.php
QUERY_STRING
s=/proInfo/17
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/proInfo/17
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/mnt/wwwroot/jhc.huudon.cn
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.16.1
REMOTE_ADDR
54.196.27.122
REMOTE_PORT
45726
SERVER_ADDR
172.18.169.252
SERVER_PORT
80
SERVER_NAME
www.manage-evo.com
REDIRECT_STATUS
200
PATH_INFO
/proInfo/17
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
manage-evo.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711664490.1521
REQUEST_TIME
1711664490
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/wwwroot/jhc.huudon.cn/application/
THINK_VERSION
5.0.12
THINK_START_TIME
1711664490.1527
THINK_START_MEM
259088
EXT
.php
DS
/
THINK_PATH
/mnt/wwwroot/jhc.huudon.cn/thinkphp/
LIB_PATH
/mnt/wwwroot/jhc.huudon.cn/thinkphp/library/
CORE_PATH
/mnt/wwwroot/jhc.huudon.cn/thinkphp/library/think/
TRAIT_PATH
/mnt/wwwroot/jhc.huudon.cn/thinkphp/library/traits/
ROOT_PATH
/mnt/wwwroot/jhc.huudon.cn/
EXTEND_PATH
/mnt/wwwroot/jhc.huudon.cn/extend/
VENDOR_PATH
/mnt/wwwroot/jhc.huudon.cn/vendor/
RUNTIME_PATH
/mnt/wwwroot/jhc.huudon.cn/runtime/
LOG_PATH
/mnt/wwwroot/jhc.huudon.cn/runtime/log/
CACHE_PATH
/mnt/wwwroot/jhc.huudon.cn/runtime/cache/
TEMP_PATH
/mnt/wwwroot/jhc.huudon.cn/runtime/temp/
CONF_PATH
/mnt/wwwroot/jhc.huudon.cn/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.2.2