Commit 91bd2fa2 authored by zhangjun's avatar zhangjun

修改

parent ed5d8277
...@@ -313,6 +313,24 @@ class Broker_base_model extends MY_Model { ...@@ -313,6 +313,24 @@ class Broker_base_model extends MY_Model {
return $rows; return $rows;
} }
public function get_broker_info_new() {
if(GB_CITY == 'nj'){
$this->dbback->select("uid,username,truename,agentcode,telno,expiredate,postlimit,groupid,is_warn,valid_flag,smallphoto,package_id,festa,is_pay,master,nofee_num,favtag_num,regdate,password,qq,email,idno,selfdesc,skill,starlevel,usetime,real_status,alipay_acount");
}else
{
$fieldStr = "uid,username,truename,agentcode,telno,expiredate,postlimit,groupid,is_warn,valid_flag,smallphoto,package_id,festa,is_pay,master,nofee_num,favtag_num,regdate,password,qq,email,idno,selfdesc,skill,starlevel,usetime,alipay_acount,real_status";
if ( GB_CITY == 'hf' ) {
$fieldStr .= ",license_number,license_number_url,institution_record_no,institution_record_no_url";
}
$this->dbback->select( $fieldStr );
}
//查询条件
$this->dbback->where("uid = '".$this->_uid."'");
//查询
$arr_data = $this->dbback->get('broker')->row_array();
return $arr_data;
}
} }
/* End of file broker_model.php */ /* End of file broker_model.php */
/* Location: ./models/broker_model.php */ /* Location: ./models/broker_model.php */
\ No newline at end of file
...@@ -452,6 +452,15 @@ class Sell extends MY_Controller { ...@@ -452,6 +452,15 @@ class Sell extends MY_Controller {
$this->load->model('package_model'); $this->load->model('package_model');
$package = $this->package_model->find_by_id($package_id); $package = $this->package_model->find_by_id($package_id);
// 请求接口验证是否能发布房源(合肥)
if ( GB_CITY == 'hf' ) {
$brokerInfo = $this->broker_model->get_broker_info_new();
if ( !isset( $brokerInfo['license_number'] ) || empty( $brokerInfo['license_number'] ) ) {
$this->jump( $url_manage, '根据政策要求,房地产经纪机构以及公司从业人员,需至相关部门完成实名登记后方可发布房源;' );
return;
}
}
//防止模拟提交房源数据 xue 2015-06-16 //防止模拟提交房源数据 xue 2015-06-16
//提交验证随机码 //提交验证随机码
$post_rand = $this->broker_model->get_rand_post(); $post_rand = $this->broker_model->get_rand_post();
......
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