Commit fddd69c7 authored by esf's avatar esf

租房

parent 12c50226
......@@ -85,13 +85,8 @@ class Rent extends MY_Controller {
$this->load->model('broker_model');
$info_extra = $this->broker_model->get_broker_detail($this->user_arr['uid']);
//print_r($info_extra);die;
if(time()-strtotime($info_extra['usetime'])<0){
//$use_access = true;
$is_permission = false;
//var_dump($is_permission);die;
}
if ($is_permission === false)
if ($is_permission === false)
{
$this->jump(GB_WO_URL);
exit;
......@@ -1725,6 +1720,14 @@ class Rent extends MY_Controller {
$data_info[$i]['freeze_info'] = $this->rent_freeze_model->get_freeze_by_rowid($data_info[$i]['id']);
}
}
// 封面图
$pic1 = $data_info[$i]['pic1'] ? $data_info[$i]['pic1'] : '';
if (!$pic1) {
$this->load->model('pic_model');
$housePics = $this->pic_model->find_house_pic_by('rent', $data_info[$i]['id']);
$data_info[$i]['pic1'] = $housePics ? $housePics[0]['filename'] : STATIC_SOURCE_URL.'/zsb/images/v1.0/default.jpg';
}
// 发布天数
$diffTimeStamp = $nowTime - $data_info[$i]['creattime'];
$publishDays = ceil($diffTimeStamp / 86400);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment