Commit 3c18f087 authored by 梅玉龙's avatar 梅玉龙

Merge remote-tracking branch 'origin/master'

parents dc5beaf0 4962fa72
......@@ -3,7 +3,7 @@
class zsb_api_model extends MY_Model{
private $host = 'http://localnewrent.house365.com';
private $host = 'http://newrent.house365.com';
private $apiSource = 'PC';// 访问API使用的公用source
private $apiVersion = '1.0.1';// 访问API使用的公用版本号
private $token = 'ZSB_API';
......
......@@ -7117,6 +7117,14 @@ class Sell extends MY_Controller {
}
$averprice = round(10000 * $new_price / $house['buildarea'], 2);
$this->sell_model->update(array('price'=>$new_price,'averprice'=>$averprice), $hid, $uid);
//添加调价记录
$this->load->model('zsb_api_model');
$change_params = array(
'tbl' => 'sell',
'house_id' => $hid,
'price' => $old_price,
);
$this->zsb_api_model->getRequrstData('add_change_price_log', $change_params);
echo json_encode(array('result'=>1, 'msg'=>iconv('gb2312','utf-8','调价成功')));
}
......
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