Commit 13ac9b6d authored by hujun's avatar hujun

锁盘

parent b4ad1645
...@@ -682,4 +682,25 @@ class Houses extends Basic ...@@ -682,4 +682,25 @@ class Houses extends Basic
echo time() - $time .'秒'; echo time() - $time .'秒';
} }
/**
* 锁盘
*
* @return \think\Response
*/
public function lockHouse() {
if (empty($this->params['house_id'])) {
return $this->response(101, '参数错误');
}
$house = new GHouses();
$num = $house->editData(['is_lock'=>1], $this->params['house_id']);
if ($num > 0) {
return $this->response(200,'');
} else {
return $this->response(101, '锁盘失败!');
}
}
} }
\ No newline at end of file
...@@ -108,6 +108,7 @@ Route::group('index', [ ...@@ -108,6 +108,7 @@ Route::group('index', [
'getAgentDistrictStore' => [ 'index/broker/getAgentDistrictStore', [ 'method' => 'GET' ] ], //获取经纪人id获取部门门店名称 'getAgentDistrictStore' => [ 'index/broker/getAgentDistrictStore', [ 'method' => 'GET' ] ], //获取经纪人id获取部门门店名称
'batchChangDish' => [ 'index/houses/batchChangDish', [ 'method' => 'post' ] ],//批量修改盘方 'batchChangDish' => [ 'index/houses/batchChangDish', [ 'method' => 'post' ] ],//批量修改盘方
'transformLandlord' => [ 'index/houses/transformLandlord', [ 'method' => 'post' ] ],//转换房东手机号 'transformLandlord' => [ 'index/houses/transformLandlord', [ 'method' => 'post' ] ],//转换房东手机号
'lockHouse' => [ 'index/houses/lockHouse', [ 'method' => 'post' ] ],//锁盘
//版本管理 //版本管理
'version' => [ 'index/version/index', [ 'method' => 'get' ] ], 'version' => [ 'index/version/index', [ 'method' => 'get' ] ],
......
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