Commit 2c9803ff authored by zhuwei's avatar zhuwei

独家方

parent 4729d417
...@@ -1010,4 +1010,31 @@ class Shop extends Basic ...@@ -1010,4 +1010,31 @@ class Shop extends Basic
$params["id"] = $businessDistrictId; $params["id"] = $businessDistrictId;
return $model->getValue($params,"name"); return $model->getValue($params,"name");
} }
/**
* 获取独家方
*/
public function getExclusive()
{
if ($this->params['houses_id']) {
$res = $this->gHousesModel->getExclusive($this->params['houses_id']);
} else {
return $this->response("101", "houses_id is null");
}
return $this->response("200", "request success", $res);
}
/**
* 商铺列表添加和编辑独家
*/
public function editExclusive()
{
if ($this->params['houses_id']) {
$res = $this->gHousesModel->exclusive($this->params, $this->params['houses_id'], $this->agentId, $this->siteId);
} else {
return $this->response("101", "houses_id is null");
}
return $this->response("200", "request success", $res);
}
} }
...@@ -699,10 +699,7 @@ Route::group('broker', [ ...@@ -699,10 +699,7 @@ Route::group('broker', [
'saveSiteCity' => ['api_broker/Location/saveSiteCity', ['method' => 'POST|GET']], //保存默认城市选择 'saveSiteCity' => ['api_broker/Location/saveSiteCity', ['method' => 'POST|GET']], //保存默认城市选择
'bargainMain' => ['api_broker/Bargain/bargainList', ['method' => 'POST|GET']], 'bargainMain' => ['api_broker/Bargain/bargainList', ['method' => 'POST|GET']],
'addUserCallAgent' => ['api_broker/CallAgent/addUserCallAgent', ['method' => 'POST|GET']],//客户来电记录 'addUserCallAgent' => ['api_broker/CallAgent/addUserCallAgent', ['method' => 'POST|GET']],//客户来电记录
...@@ -710,20 +707,24 @@ Route::group('broker', [ ...@@ -710,20 +707,24 @@ Route::group('broker', [
'getSiteListApp' => ['api_broker/Site/getSiteList', ['method' => 'POST|GET']], //获取站点列表 'getSiteListApp' => ['api_broker/Site/getSiteList', ['method' => 'POST|GET']], //获取站点列表
'getAgentSiteList' => [ 'api_broker/Site/getAgentSiteList', [ 'method' => 'POST|GET' ] ], //获取经纪人站点列表 'getAgentSiteList' => [ 'api_broker/Site/getAgentSiteList', [ 'method' => 'POST|GET' ] ], //获取经纪人站点列表
'getPhoneBook' => [ 'api_broker/Agent/getPhoneBook', [ 'method' => 'POST|GET' ] ], //消息页面--通讯录 'getPhoneBook' => [ 'api_broker/Agent/getPhoneBook', [ 'method' => 'POST|GET' ] ], //消息页面--通讯录
'commentAndDeal' => [ 'api_broker/broker/commentAndDeal', [ 'method' => 'get' ] ],//获取当前经纪人的评价和交易列表 'commentAndDeal' => [ 'api_broker/broker/commentAndDeal', [ 'method' => 'get' ] ],//获取当前经纪人的评价和交易列表
'addSpreadUser' => [ 'api_broker/SpreadUser/addSpreadUser', [ 'method' => 'POST|GET' ] ], 'addSpreadUser' => [ 'api_broker/SpreadUser/addSpreadUser', [ 'method' => 'POST|GET' ] ],
'getVolume' => [ 'api_broker/SpreadUser/getVolume', [ 'method' => 'POST|GET' ] ], 'getVolume' => [ 'api_broker/SpreadUser/getVolume', [ 'method' => 'POST|GET' ] ],
'getOurAppointment' => [ 'api_broker/AppointmentShop/getOurAppointment', [ 'method' => 'get' ] ],//我的客户预约 'getOurAppointment' => [ 'api_broker/AppointmentShop/getOurAppointment', [ 'method' => 'get' ] ],//我的客户预约
'addApplies' => [ 'api_broker/AppointmentShop/addApplies', [ 'method' => 'POST' ] ],//我的客户预约转为 'addApplies' => [ 'api_broker/AppointmentShop/addApplies', [ 'method' => 'POST' ] ],//我的客户预约转为
'addFollow' => [ 'api_broker/AppointmentShop/addFollow', [ 'method' => 'POST' ] ],//我的客户跟进 'addFollow' => [ 'api_broker/AppointmentShop/addFollow', [ 'method' => 'POST' ] ],//我的客户跟进
'getHouseAddress' => [ 'api_broker/shop/getHouseAddress', [ 'method' => 'get' ] ], //搜索商铺地址 'getHouseAddress' => [ 'api_broker/shop/getHouseAddress', [ 'method' => 'get' ] ], //搜索商铺地址
//业绩日报周报重写 //业绩日报周报重写
'dayOrWeekStatement' => ['api_broker/Statement/dayOrWeekStatement', ['method' => 'get|post']], 'dayOrWeekStatement' => ['api_broker/Statement/dayOrWeekStatement', ['method' => 'get|post']],
'getExclusive' => [ 'api_broker/Shop/getExclusive', [ 'method' => 'get|post' ] ],
'editExclusive' => [ 'api_broker/Shop/editExclusive', [ 'method' => 'get|post' ] ],
]); ]);
//Route::miss('api/index/miss');//处理错误的url //Route::miss('api/index/miss');//处理错误的url
\ No newline at end of file
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