[8] ErrorException in Second.php line 59

未定义数组下标: 0

  1. //楼盘详细页
  2. public function detail(){
  3. $id = input('param.id/d',0);
  4. $info = model('second_house')->where(['status'=>['in','-1,1'],'id'=>$id])->find();
  5. if(!$id || !$info){
  6. return $this->fetch('public/404');
  7. }elseif($info['city'] != $this->cityInfo['id']){
  8. // 城市不一样重定向到正确城市
  9. $city_cache = cache('city');
  10. $this_domain = $city_cache['cate'][$info['city']]['domain'];
  11. $this->redirect(url('Second/detail@'.$this_domain,['id'=>$id]));
  12. }
  13. $estate = model('estate')->where(['id'=>$info['estate_id']])->find();
  14. $explain = cache('explain');
  15. $this->setSeo($info);
  16. model('second_house')->where(['id'=>$id])->setInc('hits');
  17. //没有关联用户的二手房源电话显示默认用户的 added by zyd
  18. if($info['user_id']){
  19. $this->getUserinfo($info['user_id']);

Call Stack

  1. in Second.php line 59
  2. at Error::appError(8, 'Undefined offset: 0', '/www/wwwroot/acp.zpf...', 59, ['id' => 618694, 'info' => object(SecondHouse), 'city_cache' => ['cate' => [['id' => 4, 'pid' => 1, 'name' => '山南', ...], ['id' => 23, 'pid' => 22, 'name' => '滨城区', ...], ['id' => 5, 'pid' => 1, 'name' => '山北', ...], ...], 'tree' => [['id' => 1, 'pid' => 0, 'name' => '邹平', ...], ['id' => 22, 'pid' => 0, 'name' => '滨州', ...]]]]) in Second.php line 59
  3. at Second->detail()
  4. at ReflectionMethod->invokeArgs(object(Second), []) in App.php line 343
  5. at App::invokeMethod([object(Second), 'detail'], []) in App.php line 611
  6. at App::module([null, 'Second', 'detail'], ['app_debug' => false, 'app_trace' => false, 'app_status' => '', ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => [null, 'Second', 'detail'], 'convert' => false], ['app_debug' => false, 'app_trace' => false, 'app_status' => '', ...]) in App.php line 139
  8. at App::run() in start.php line 18
  9. at require('/www/wwwroot/acp.zpf...') in index.php line 17

Exception Datas

Error Context
id 618694
info { "id": 618694, "sis_id": "HR2288G", "title": "\u9ec4\u5c71\u9f0e\u90fd\uff0c\u8bc1\u8fc7\u4e24\u5e74\uff0c\u5e26\u8f66\u4f4d\uff0c\u50a8\u85cf\u5ba4\uff0c\u6709\u4e0a\u5b66\u540d\u989d\u3002", "estate_id": 0, "estate_name": "", "estate_id_erp": 0, "pedestal_room_id": null, "city": 0, "city_name": null, "area": 0, "area_name": null, "room": 3, "ting": 2, "wei": 1, "chu": 1, "yang": 1, "price": 9677, "total_price": "132.00", "mianji": "136.40", "floor": 7, "total_floor": 14, "house_type": "62", "tese_tag": null, "zhuangxiu": 73, "chaoxiang": 84, "peitao": "107,105", "niandai": "", "tese": "", "address": "", "lat": "0", "lng": "0", "img": "\/uploads\/SecondHouse\/20200324\/5bec3bee35cd97f4b1ce6a02b21102d9.jpg", "video": null, "hxpic": null, "file": [ { "url": "\/\/img1.shijifc.com\/uploads\/image\/20200324\/1585008668109643.jpg", "title": "1" }, { "url": "\/\/img1.shijifc.com\/uploads\/image\/20200324\/1585008668645199.jpg", "title": "1" }, { "url": "\/\/img1.shijifc.com\/uploads\/image\/20200324\/1585008668129461.jpg", "title": "1" }, { "url": "\/\/img1.shijifc.com\/uploads\/image\/20200324\/1585008668470368.jpg", "title": "1" }, { "url": "\/\/img1.shijifc.com\/uploads\/image\/20200324\/1585008668750551.jpg", "title": "1" }, { "url": "\/\/img1.shijifc.com\/uploads\/image\/20200324\/1585008668595958.jpg", "title": "1" }, { "url": "\/\/img1.shijifc.com\/uploads\/image\/20200324\/1585008668758175.jpg", "title": "1" }, { "url": "\/\/img1.shijifc.com\/uploads\/image\/20200324\/1585008668554016.jpg", "title": "1" } ], "hxpics": null, "info": "", "seo_title": null, "seo_keys": null, "seo_desc": null, "status": -1, "create_time": 1585008866, "update_time": 1585008866, "select_time": null, "top_time": null, "contact": "\u738b\u731b", "contact_phone": "15550629679", "rec_position": "0", "user_type": 2, "jishou": 1, "user_id": 9189, "old_user": 0, "ordid": 1000, "hits": 0, "source": null }
city_cache { "cate": { "4": { "id": 4, "pid": 1, "name": "\u5c71\u5357", "alias": "shannan", "is_hot": 1, "domain": "", "map": "117.758338,36.881613" }, "23": { "id": 23, "pid": 22, "name": "\u6ee8\u57ce\u533a", "alias": "binchengqu", "is_hot": 0, "domain": null, "map": "118.020789,37.386186" }, "5": { "id": 5, "pid": 1, "name": "\u5c71\u5317", "alias": "shanbei", "is_hot": 0, "domain": "", "map": "117.749317,36.863083" }, "27": { "id": 27, "pid": 22, "name": "\u7ecf\u6d4e\u6280\u672f\u5f00\u53d1\u533a", "alias": "jingjijishukaifaqu", "is_hot": 0, "domain": null, "map": "117.959372,37.38968" }, "25": { "id": 25, "pid": 22, "name": "\u9ad8\u65b0\u533a", "alias": "gaoxinqu", "is_hot": 0, "domain": null, "map": "118.091464,37.310426" }, "24": { "id": 24, "pid": 1, "name": "\u90b9\u5e73\u5f00\u53d1\u533a", "alias": "kaifaqu", "is_hot": 0, "domain": null, "map": "117.769186,36.88885" }, "6": { "id": 6, "pid": 1, "name": "\u897f\u8463", "alias": "xidong", "is_hot": 0, "domain": "", "map": "117.753472,36.814715" }, "28": { "id": 28, "pid": 22, "name": "\u5317\u6d77\u65b0\u533a", "alias": "beihaiqu", "is_hot": 0, "domain": null, "map": "117.87338,38.02749" }, "26": { "id": 26, "pid": 22, "name": "\u6cbe\u5316\u533a", "alias": "zhanhuaqu", "is_hot": 0, "domain": null, "map": "118.105319,37.705664" }, "29": { "id": 29, "pid": 1, "name": "\u793c\u53c1", "alias": "lisan", "is_hot": 0, "domain": null, "map": "117.824586,36.887295" }, "1": { "id": 1, "pid": 0, "name": "\u90b9\u5e73", "alias": "www", "is_hot": 1, "domain": "www", "map": "117.749572,36.869506" }, "22": { "id": 22, "pid": 0, "name": "\u6ee8\u5dde", "alias": "bz", "is_hot": 0, "domain": "bz", "map": "118.020789,37.386186" }, "20": { "id": 20, "pid": 1, "name": "\u53f0\u5b50", "alias": "taizi", "is_hot": 0, "domain": null, "map": "117.516357,37.097971" }, "19": { "id": 19, "pid": 1, "name": "\u5b59\u9547", "alias": "sunzhen", "is_hot": 0, "domain": null, "map": "117.705419,37.037348" }, "18": { "id": 18, "pid": 1, "name": "\u4e5d\u6237", "alias": "jiuhu", "is_hot": 0, "domain": null, "map": "117.628505,37.045595" }, "17": { "id": 17, "pid": 1, "name": "\u4e34\u6c60", "alias": "linchi", "is_hot": 0, "domain": null, "map": "117.791093,36.716403" }, "16": { "id": 16, "pid": 1, "name": "\u7801\u5934", "alias": "matou", "is_hot": 0, "domain": null, "map": "117.402587,37.033649" }, "15": { "id": 15, "pid": 1, "name": "\u957f\u5c71", "alias": "changshan", "is_hot": 0, "domain": null, "map": "117.878905,36.882895" }, "14": { "id": 14, "pid": 1, "name": "\u9752\u9633", "alias": "qingyang", "is_hot": 0, "domain": null, "map": "117.625427,36.875807" }, "13": { "id": 13, "pid": 1, "name": "\u597d\u751f", "alias": "haosheng", "is_hot": 0, "domain": null, "map": "117.81185,36.82363" }, "12": { "id": 12, "pid": 1, "name": "\u9b4f\u6865", "alias": "weiqiao", "is_hot": 0, "domain": null, "map": "117.505283,37.03497" }, "11": { "id": 11, "pid": 1, "name": "\u660e\u96c6", "alias": "mingji", "is_hot": 0, "domain": null, "map": "117.642337,36.933185" }, "7": { "id": 7, "pid": 1, "name": "\u97e9\u5e97", "alias": "handian", "is_hot": 0, "domain": "", "map": "117.71761,36.956444" } }, "tree": { "1": { "id": 1, "pid": 0, "name": "\u90b9\u5e73", "alias": "www", "is_hot": 1, "domain": "www", "map": "117.749572,36.869506", "_child": { "4": { "id": 4, "pid": 1, "name": "\u5c71\u5357", "alias": "shannan", "is_hot": 1, "domain": "", "map": "117.758338,36.881613" }, "5": { "id": 5, "pid": 1, "name": "\u5c71\u5317", "alias": "shanbei", "is_hot": 0, "domain": "", "map": "117.749317,36.863083" }, "24": { "id": 24, "pid": 1, "name": "\u90b9\u5e73\u5f00\u53d1\u533a", "alias": "kaifaqu", "is_hot": 0, "domain": null, "map": "117.769186,36.88885" }, "6": { "id": 6, "pid": 1, "name": "\u897f\u8463", "alias": "xidong", "is_hot": 0, "domain": "", "map": "117.753472,36.814715" }, "29": { "id": 29, "pid": 1, "name": "\u793c\u53c1", "alias": "lisan", "is_hot": 0, "domain": null, "map": "117.824586,36.887295" }, "20": { "id": 20, "pid": 1, "name": "\u53f0\u5b50", "alias": "taizi", "is_hot": 0, "domain": null, "map": "117.516357,37.097971" }, "19": { "id": 19, "pid": 1, "name": "\u5b59\u9547", "alias": "sunzhen", "is_hot": 0, "domain": null, "map": "117.705419,37.037348" }, "18": { "id": 18, "pid": 1, "name": "\u4e5d\u6237", "alias": "jiuhu", "is_hot": 0, "domain": null, "map": "117.628505,37.045595" }, "17": { "id": 17, "pid": 1, "name": "\u4e34\u6c60", "alias": "linchi", "is_hot": 0, "domain": null, "map": "117.791093,36.716403" }, "16": { "id": 16, "pid": 1, "name": "\u7801\u5934", "alias": "matou", "is_hot": 0, "domain": null, "map": "117.402587,37.033649" }, "15": { "id": 15, "pid": 1, "name": "\u957f\u5c71", "alias": "changshan", "is_hot": 0, "domain": null, "map": "117.878905,36.882895" }, "14": { "id": 14, "pid": 1, "name": "\u9752\u9633", "alias": "qingyang", "is_hot": 0, "domain": null, "map": "117.625427,36.875807" }, "13": { "id": 13, "pid": 1, "name": "\u597d\u751f", "alias": "haosheng", "is_hot": 0, "domain": null, "map": "117.81185,36.82363" }, "12": { "id": 12, "pid": 1, "name": "\u9b4f\u6865", "alias": "weiqiao", "is_hot": 0, "domain": null, "map": "117.505283,37.03497" }, "11": { "id": 11, "pid": 1, "name": "\u660e\u96c6", "alias": "mingji", "is_hot": 0, "domain": null, "map": "117.642337,36.933185" }, "7": { "id": 7, "pid": 1, "name": "\u97e9\u5e97", "alias": "handian", "is_hot": 0, "domain": "", "map": "117.71761,36.956444" } } }, "22": { "id": 22, "pid": 0, "name": "\u6ee8\u5dde", "alias": "bz", "is_hot": 0, "domain": "bz", "map": "118.020789,37.386186", "_child": { "23": { "id": 23, "pid": 22, "name": "\u6ee8\u57ce\u533a", "alias": "binchengqu", "is_hot": 0, "domain": null, "map": "118.020789,37.386186" }, "27": { "id": 27, "pid": 22, "name": "\u7ecf\u6d4e\u6280\u672f\u5f00\u53d1\u533a", "alias": "jingjijishukaifaqu", "is_hot": 0, "domain": null, "map": "117.959372,37.38968" }, "25": { "id": 25, "pid": 22, "name": "\u9ad8\u65b0\u533a", "alias": "gaoxinqu", "is_hot": 0, "domain": null, "map": "118.091464,37.310426" }, "28": { "id": 28, "pid": 22, "name": "\u5317\u6d77\u65b0\u533a", "alias": "beihaiqu", "is_hot": 0, "domain": null, "map": "117.87338,38.02749" }, "26": { "id": 26, "pid": 22, "name": "\u6cbe\u5316\u533a", "alias": "zhanhuaqu", "is_hot": 0, "domain": null, "map": "118.105319,37.705664" } } } } }

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.zpfdcw.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/esf/618694
REDIRECT_STATUS
200
SERVER_NAME
acp.zpfdcw.com
SERVER_PORT
80
SERVER_ADDR
172.31.109.196
REMOTE_PORT
49488
REMOTE_ADDR
18.208.172.3
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/acp.zpfdcw.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/esf/618694
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/esf/618694
SCRIPT_FILENAME
/www/wwwroot/acp.zpfdcw.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711660477.5094
REQUEST_TIME
1711660477
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/acp.zpfdcw.com/public/../application/
THINK_VERSION
5.0.9
THINK_START_TIME
1711660477.5095
THINK_START_MEM
393528
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/acp.zpfdcw.com/thinkphp/
LIB_PATH
/www/wwwroot/acp.zpfdcw.com/thinkphp/library/
CORE_PATH
/www/wwwroot/acp.zpfdcw.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/acp.zpfdcw.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/acp.zpfdcw.com/
PUBLIC_PATH
/www/wwwroot/acp.zpfdcw.com/public/
EXTEND_PATH
/www/wwwroot/acp.zpfdcw.com/extend/
VENDOR_PATH
/www/wwwroot/acp.zpfdcw.com/vendor/
RUNTIME_PATH
/www/wwwroot/acp.zpfdcw.com/runtime/
LOG_PATH
/www/wwwroot/acp.zpfdcw.com/runtime/log/
CACHE_PATH
/www/wwwroot/acp.zpfdcw.com/runtime/cache/
TEMP_PATH
/www/wwwroot/acp.zpfdcw.com/runtime/temp/
CONF_PATH
/www/wwwroot/acp.zpfdcw.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ALIBABA_CLOUD_GLOBAL_CLIENT
global
ALIBABA_CLOUD_GLOBAL_REGION
global
ALIBABA_CLOUD_TIMEOUT
15
ALIBABA_CLOUD_CONNECT_TIMEOUT
3
ALIBABA_CLOUD_STS_EXPIRE
3600
ALIBABA_CLOUD_EXPIRATION_INTERVAL
5
ALIBABA_CLOUD_INVALID_CREDENTIAL
SDK.InvalidCredential
ALIBABA_CLOUD_CLIENT_NOT_FOUND
SDK.ClientNotFound
ALIBABA_CLOUD_SERVER_UNREACHABLE
SDK.ServerUnreachable
ALIBABA_CLOUD_INVALID_REGION_ID
SDK.InvalidRegionId
ALIBABA_CLOUD_INVALID_ARGUMENT
SDK.InvalidArgument
ALIBABA_CLOUD_SERVICE_NOT_FOUND
SDK.ServiceNotFound
ALIBABA_CLOUD_VERSION_NOT_FOUND
SDK.VersionNotFound
ALIBABA_CLOUD_API_NOT_FOUND
SDK.ApiNotFound
ALIBABA_CLOUD_PARSE_ERROR
SDK.ParseError
ALIBABA_CLOUD_SDK_VERSION
1.0.6