Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
2c9803ff
Commit
2c9803ff
authored
Dec 13, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
独家方
parent
4729d417
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
11 deletions
+40
-11
Shop.php
application/api_broker/controller/Shop.php
+27
-0
route.php
application/route.php
+13
-11
No files found.
application/api_broker/controller/Shop.php
View file @
2c9803ff
...
@@ -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
);
}
}
}
application/route.php
View file @
2c9803ff
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment