$id = input('param.id/d',0);
$info='';$house_info='';
if($id){
$info = $this->obj->where(['status'=>1,'id'=>$id])->find();
if(!$info){
return $this->fetch('public/404');
}elseif($info['city'] != $this->cityInfo['id']){
// 城市不一样重定向到正确城市
$city_cache = cache('city');
$this_domain = $city_cache['cate'][$info['city']]['domain'];
$this->redirect(url('News/detail@'.$this_domain,['id'=>$id]));
}
$this->obj->where(['status'=>1,'id'=>$id])->setInc('hits');
if($info['house_id']){
$house_info = model('house')->field('id,title,img,city_name,area_name,average_price,address,sale_phone')->where(['id'=>$info['house_id'],'status'=>1])->find();
$fuhao = empty($info['seo_keys'])?'':',';
$info['seo_keys'] .= $fuhao.$house_info['title'];
}
id | 1691 |
info | { "id": 1691, "cate_id": 13, "cate_alias": "fcxw", "house_id": 0, "city": 22, "title": "\u6b63\u786e\u89e3\u8bfb\u653f\u7b56 \u7406\u667a\u4f20\u64ad\u4fe1\u606f", "img": "\/uploads\/Article\/20190925\/01ba92115bec345c484376cc452e12ec.jpg", "file": 0, "info": "<h2 style=\"margin: 0px; padding: 0px; font-weight: 400; font-size: 16px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; text-shadow: rgb(255, 76, 0) 1px 1px 3px; text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 20px;\">\u4e8e\u672c\u6b21\u592e\u884c\u964d\u51c6\uff0c<\/span><\/h2><h2 style=\"margin: 0px; padding: 0px; font-weight: 400; font-size: 16px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; text-shadow: rgb(255, 76, 0) 1px 1px 3px; text-align: center;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; font-size: 20px;\">\u51e0\u70b9\u63d0\u793a<\/span><\/h2><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"><br\/><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">\u4e2d\u56fd\u4eba\u6c11\u94f6\u884c2019\u5e749\u67086\u65e5\u53d1\u5e03\u4fe1\u606f\uff0c\u51b3\u5b9a\u4e8e9\u670816\u65e5\u4e0b\u8c03\u91d1\u878d\u673a\u6784\u5b58\u6b3e\u51c6\u5907\u91d1\u7387\u3002\u5177\u4f53\u5185\u5bb9\u5982\u4e0b\uff1a<\/strong><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"> \u4e3a\u652f\u6301\u5b9e\u4f53\u7ecf\u6d4e\u53d1\u5c55\uff0c\u964d\u4f4e\u793e\u4f1a\u878d\u8d44\u5b9e\u9645\u6210\u672c\uff0c\u4e2d\u56fd\u4eba\u6c11\u94f6\u884c\u51b3\u5b9a\u4e8e2019\u5e749\u670816\u65e5\u5168\u9762\u4e0b\u8c03\u91d1\u878d\u673a\u6784\u5b58\u6b3e\u51c6\u5907\u91d1\u73870.5\u4e2a\u767e\u5206\u70b9\uff08\u4e0d\u542b\u8d22\u52a1\u516c\u53f8\u3001\u91d1\u878d\u79df\u8d41\u516c\u53f8\u548c\u6c7d\u8f66\u91d1\u878d\u516c\u53f8\uff09\u3002<\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"> \u5728\u6b64\u4e4b\u5916\uff0c\u4e3a\u4fc3\u8fdb\u52a0\u5927\u5bf9\u5c0f\u5fae\u3001\u6c11\u8425\u4f01\u4e1a\u7684\u652f\u6301\u529b\u5ea6\uff0c\u518d\u989d\u5916\u5bf9\u4ec5\u5728\u7701\u7ea7\u884c\u653f\u533a\u57df\u5185\u7ecf\u8425\u7684\u57ce\u5e02\u5546\u4e1a\u94f6\u884c\u5b9a\u5411\u4e0b\u8c03\u5b58\u6b3e\u51c6\u5907\u91d1\u73871\u4e2a\u767e\u5206\u70b9\uff0c\u4e8e10\u670815\u65e5\u548c11\u670815\u65e5\u5206\u4e24\u6b21\u5b9e\u65bd\u5230\u4f4d\uff0c\u6bcf\u6b21\u4e0b\u8c030.5\u4e2a\u767e\u5206\u70b9\u3002<\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"> \u4e2d\u56fd\u4eba\u6c11\u94f6\u884c\u5c06\u7ee7\u7eed\u5b9e\u65bd\u7a33\u5065\u7684\u8d27\u5e01\u653f\u7b56\uff0c\u4e0d\u641e\u5927\u6c34\u6f2b\u704c\uff0c\u6ce8\u91cd\u5b9a\u5411\u8c03\u63a7\uff0c\u517c\u987e\u5185\u5916\u5e73\u8861\uff0c\u52a0\u5927\u9006\u5468\u671f\u8c03\u8282\u529b\u5ea6\uff0c\u4fdd\u6301\u6d41\u52a8\u6027\u5408\u7406\u5145\u88d5\uff0c\u4fdd\u6301\u5e7f\u4e49\u8d27\u5e01M2\u548c\u793e\u4f1a\u878d\u8d44\u89c4\u6a21\u589e\u901f\u4e0e\u540d\u4e49GDP\u589e\u901f\u57fa\u672c\u5339\u914d\uff0c\u4e3a\u9ad8\u8d28\u91cf\u53d1\u5c55\u548c\u4f9b\u7ed9\u4fa7\u7ed3\u6784\u6027\u6539\u9769\u8425\u9020\u9002\u5b9c\u7684\u8d27\u5e01\u91d1\u878d\u73af\u5883\u3002<\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; text-align: right; box-sizing: border-box !important; word-wrap: break-word !important;\">\uff08\u6458\u81ea\u4e2d\u56fd\u4eba\u6c11\u94f6\u884c\u5b98\u7f51\uff09<\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; text-align: right; box-sizing: border-box !important; word-wrap: break-word !important;\"><br\/><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; text-align: right; box-sizing: border-box !important; word-wrap: break-word !important;\"><br\/><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"><span style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important; color: rgb(255, 41, 65); font-size: 18px;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">\u5bf9\u4e8e\u6b64\u6b21\u592e\u884c\u964d\u51c6\uff0c21\u4e16\u7eaa\u4e0d\u52a8\u4ea7\u6ee8\u5dde\u533a\u57df\u63d0\u9192\u6ce8\u610f\u4ee5\u4e0b\u4e8b\u9879\uff1a<\/strong><\/span><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">1\u3001\u575a\u51b3\u843d\u5b9e\u201c\u623f\u4f4f\u4e0d\u7092\u201d\u3001\u201c\u4e0d\u5c06\u623f\u5730\u4ea7\u4f5c\u4e3a\u77ed\u671f\u523a\u6fc0\u7ecf\u6d4e\u7684\u624b\u6bb5\u201d\u7684\u653f\u7b56\u5bfc\u5411;<\/strong><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">2\u3001\u4e0d\u8981\u51ed\u4e2a\u4eba\u731c\u6d4b\u8fc7\u5ea6\u89e3\u8bfb\u653f\u7b56\uff0c\u5728\u81ea\u5a92\u4f53\u4e0a\u53d1\u5e03\u4e0d\u5f53\u8bc4\u8bba\uff1b<\/strong><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">3\u3001\u4e0d\u8981\u4e3a\u4fc3\u6210\u4ea4\u6613\uff0c\u5bf9\u4e2a\u4eba\u4f4f\u623f\u8d37\u6b3e\u5229\u7387\u8f6c\u6362\u4e00\u4e8b\u505a\u8bef\u5bfc\u6027\u731c\u6d4b\uff0c\u4ee5\u671f\u8bf1\u5bfc\u5f53\u4e8b\u4eba\u5c3d\u5feb\u4ea4\u6613\uff1b<\/strong><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">4\u3001\u7763\u4fc3\u5458\u5de5\uff0c\u4e0d\u8981\u628a\u65e0\u6839\u636e\u7684\u731c\u6d4b\u53d1\u5230\u670b\u53cb\u5708\u6216\u5fae\u4fe1\u7fa4\uff1b<\/strong><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">5\u3001\u5bf9\u6563\u5e03\u4e0d\u5b9e\u6d88\u606f\uff0c\u9020\u6210\u4e0d\u826f\u540e\u679c\u7684\u673a\u6784\u53ca\u4e2a\u4eba\uff0c\u5c06\u53d7\u5230\u884c\u653f\u5904\u7f5a\u3002<\/strong><\/p><h1 style=\"margin: 0px; padding: 0px; font-weight: 400; font-size: 16px; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"><br\/><\/h1><p><br\/><\/p>", "description": "\u4e8e\u672c\u6b21\u592e\u884c\u964d\u51c6\uff0c\u51e0\u70b9\u63d0\u793a\u4e2d\u56fd\u4eba\u6c11\u94f6\u884c2019\u5e749\u67086\u65e5\u53d1\u5e03\u4fe1\u606f\uff0c\u51b3\u5b9a\u4e8e9\u670816\u65e5\u4e0b\u8c03\u91d1\u878d\u673a\u6784\u5b58\u6b3e\u51c6\u5907\u91d1\u7387\u3002\u5177\u4f53\u5185\u5bb9\u5982\u4e0b\uff1a\u4e3a\u652f\u6301\u5b9e\u4f53\u7ecf\u6d4e\u53d1\u5c55\uff0c\u964d\u4f4e\u793e\u4f1a\u878d\u8d44\u5b9e\u9645\u6210\u672c\uff0c\u4e2d\u56fd\u4eba\u6c11\u94f6\u884c\u51b3\u5b9a\u4e8e2019\u5e749\u670816\u65e5\u5168\u9762\u4e0b\u8c03\u91d1\u878d\u673a\u6784\u5b58\u6b3e\u51c6\u5907\u91d1\u73870.5\u4e2a\u767e\u5206\u70b9\uff08\u4e0d\u542b\u8d22\u52a1\u516c\u53f8\u3001\u91d1\u878d\u79df\u8d41\u516c\u53f8\u548c\u6c7d\u8f66\u91d1\u878d\u516c\u53f8\uff09\u3002\u5728\u6b64\u4e4b\u5916\uff0c\u4e3a\u4fc3\u8fdb\u52a0\u5927\u5bf9\u5c0f\u5fae\u3001\u6c11\u8425\u4f01\u4e1a\u7684\u652f\u6301\u529b\u5ea6\uff0c\u518d\u989d\u5916\u5bf9\u4ec5\u5728\u7701\u7ea7\u884c\u653f\u533a\u57df\u5185\u7ecf\u8425\u7684\u57ce\u5e02\u5546\u4e1a\u94f6\u884c\u5b9a\u5411\u4e0b\u8c03\u5b58\u6b3e\u51c6\u5907\u91d1\u7387...", "create_time": 1569393278, "status": 1, "ordid": 1, "seo_title": "", "seo_keys": "", "seo_desc": "", "update_time": 1569393278, "editor": null, "comefrom": "", "hits": 762, "isrec": 0, "delete_time": null, "tags": "", "user_id": 0 } |
house_info | |
city_cache | { "cate": { "4": { "id": 4, "pid": 1, "name": "\u5c71\u5357", "alias": "shannan", "is_hot": 1, "domain": "", "map": "117.749317,36.863083", "status": 1 }, "23": { "id": 23, "pid": 22, "name": "\u6ee8\u57ce\u533a", "alias": "binchengqu", "is_hot": 0, "domain": null, "map": "118.020789,37.386186", "status": 1 }, "5": { "id": 5, "pid": 1, "name": "\u5c71\u5317", "alias": "shanbei", "is_hot": 0, "domain": "", "map": "117.758338,36.881613", "status": 1 }, "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", "status": 1 }, "25": { "id": 25, "pid": 22, "name": "\u9ad8\u65b0\u533a", "alias": "gaoxinqu", "is_hot": 0, "domain": null, "map": "118.091464,37.310426", "status": 1 }, "24": { "id": 24, "pid": 1, "name": "\u90b9\u5e73\u5f00\u53d1\u533a", "alias": "kaifaqu", "is_hot": 0, "domain": null, "map": "117.769186,36.88885", "status": 1 }, "6": { "id": 6, "pid": 1, "name": "\u897f\u8463", "alias": "xidong", "is_hot": 0, "domain": "", "map": "117.753472,36.814715", "status": 1 }, "28": { "id": 28, "pid": 22, "name": "\u5317\u6d77\u65b0\u533a", "alias": "beihaiqu", "is_hot": 0, "domain": null, "map": "117.87338,38.02749", "status": 1 }, "26": { "id": 26, "pid": 22, "name": "\u6cbe\u5316\u533a", "alias": "zhanhuaqu", "is_hot": 0, "domain": null, "map": "118.105319,37.705664", "status": 1 }, "29": { "id": 29, "pid": 1, "name": "\u793c\u53c1", "alias": "lisan", "is_hot": 0, "domain": null, "map": "117.824586,36.887295", "status": 1 }, "1": { "id": 1, "pid": 0, "name": "\u90b9\u5e73", "alias": "www", "is_hot": 1, "domain": "www", "map": "117.749572,36.869506", "status": 1 }, "20": { "id": 20, "pid": 1, "name": "\u53f0\u5b50", "alias": "taizi", "is_hot": 0, "domain": null, "map": "117.516357,37.097971", "status": 1 }, "19": { "id": 19, "pid": 1, "name": "\u5b59\u9547", "alias": "sunzhen", "is_hot": 0, "domain": null, "map": "117.705419,37.037348", "status": 1 }, "18": { "id": 18, "pid": 1, "name": "\u4e5d\u6237", "alias": "jiuhu", "is_hot": 0, "domain": null, "map": "117.628505,37.045595", "status": 1 }, "17": { "id": 17, "pid": 1, "name": "\u4e34\u6c60", "alias": "linchi", "is_hot": 0, "domain": null, "map": "117.791093,36.716403", "status": 1 }, "16": { "id": 16, "pid": 1, "name": "\u7801\u5934", "alias": "matou", "is_hot": 0, "domain": null, "map": "117.402587,37.033649", "status": 1 }, "15": { "id": 15, "pid": 1, "name": "\u957f\u5c71", "alias": "changshan", "is_hot": 0, "domain": null, "map": "117.878905,36.882895", "status": 1 }, "14": { "id": 14, "pid": 1, "name": "\u9752\u9633", "alias": "qingyang", "is_hot": 0, "domain": null, "map": "117.625427,36.875807", "status": 1 }, "13": { "id": 13, "pid": 1, "name": "\u597d\u751f", "alias": "haosheng", "is_hot": 0, "domain": null, "map": "117.81185,36.82363", "status": 1 }, "12": { "id": 12, "pid": 1, "name": "\u9b4f\u6865", "alias": "weiqiao", "is_hot": 0, "domain": null, "map": "117.505283,37.03497", "status": 1 }, "11": { "id": 11, "pid": 1, "name": "\u660e\u96c6", "alias": "mingji", "is_hot": 0, "domain": null, "map": "117.642337,36.933185", "status": 1 }, "7": { "id": 7, "pid": 1, "name": "\u97e9\u5e97", "alias": "handian", "is_hot": 0, "domain": "", "map": "117.71761,36.956444", "status": 1 } }, "tree": { "1": { "id": 1, "pid": 0, "name": "\u90b9\u5e73", "alias": "www", "is_hot": 1, "domain": "www", "map": "117.749572,36.869506", "status": 1, "_child": { "4": { "id": 4, "pid": 1, "name": "\u5c71\u5357", "alias": "shannan", "is_hot": 1, "domain": "", "map": "117.749317,36.863083", "status": 1 }, "5": { "id": 5, "pid": 1, "name": "\u5c71\u5317", "alias": "shanbei", "is_hot": 0, "domain": "", "map": "117.758338,36.881613", "status": 1 }, "24": { "id": 24, "pid": 1, "name": "\u90b9\u5e73\u5f00\u53d1\u533a", "alias": "kaifaqu", "is_hot": 0, "domain": null, "map": "117.769186,36.88885", "status": 1 }, "6": { "id": 6, "pid": 1, "name": "\u897f\u8463", "alias": "xidong", "is_hot": 0, "domain": "", "map": "117.753472,36.814715", "status": 1 }, "29": { "id": 29, "pid": 1, "name": "\u793c\u53c1", "alias": "lisan", "is_hot": 0, "domain": null, "map": "117.824586,36.887295", "status": 1 }, "20": { "id": 20, "pid": 1, "name": "\u53f0\u5b50", "alias": "taizi", "is_hot": 0, "domain": null, "map": "117.516357,37.097971", "status": 1 }, "19": { "id": 19, "pid": 1, "name": "\u5b59\u9547", "alias": "sunzhen", "is_hot": 0, "domain": null, "map": "117.705419,37.037348", "status": 1 }, "18": { "id": 18, "pid": 1, "name": "\u4e5d\u6237", "alias": "jiuhu", "is_hot": 0, "domain": null, "map": "117.628505,37.045595", "status": 1 }, "17": { "id": 17, "pid": 1, "name": "\u4e34\u6c60", "alias": "linchi", "is_hot": 0, "domain": null, "map": "117.791093,36.716403", "status": 1 }, "16": { "id": 16, "pid": 1, "name": "\u7801\u5934", "alias": "matou", "is_hot": 0, "domain": null, "map": "117.402587,37.033649", "status": 1 }, "15": { "id": 15, "pid": 1, "name": "\u957f\u5c71", "alias": "changshan", "is_hot": 0, "domain": null, "map": "117.878905,36.882895", "status": 1 }, "14": { "id": 14, "pid": 1, "name": "\u9752\u9633", "alias": "qingyang", "is_hot": 0, "domain": null, "map": "117.625427,36.875807", "status": 1 }, "13": { "id": 13, "pid": 1, "name": "\u597d\u751f", "alias": "haosheng", "is_hot": 0, "domain": null, "map": "117.81185,36.82363", "status": 1 }, "12": { "id": 12, "pid": 1, "name": "\u9b4f\u6865", "alias": "weiqiao", "is_hot": 0, "domain": null, "map": "117.505283,37.03497", "status": 1 }, "11": { "id": 11, "pid": 1, "name": "\u660e\u96c6", "alias": "mingji", "is_hot": 0, "domain": null, "map": "117.642337,36.933185", "status": 1 }, "7": { "id": 7, "pid": 1, "name": "\u97e9\u5e97", "alias": "handian", "is_hot": 0, "domain": "", "map": "117.71761,36.956444", "status": 1 } } } } } |