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
bacb4f52
Commit
bacb4f52
authored
Jul 29, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取经纪人有哪些站点的账号
parent
d95587d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
Site.php
application/api_broker/controller/Site.php
+25
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/Site.php
View file @
bacb4f52
...
...
@@ -73,5 +73,29 @@ class Site extends Basic
}
/**
* 获取经纪人有哪些站点的账号
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getAgentSiteListV2
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/*$params = array(
"agent_phone" => "13817616471"
);*/
if
(
empty
(
$params
[
"agent_phone"
])
||
empty
(
$params
[
'site_id'
])){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$field
=
'a.id,a.site_id,b.city'
;
$get_params
[
'b.is_del'
]
=
0
;
$get_params
[
'a.phone'
]
=
$params
[
"agent_phone"
];
$get_params
[
'a.site_id'
]
=
$params
[
"site_id"
];
//去除其它城市
$site_city
=
$this
->
aAgentModel
->
getAgentSiteList
(
$get_params
,
$field
);
return
$this
->
response
(
"200"
,
"success"
,
$site_city
);
}
}
\ No newline at end of file
application/route.php
View file @
bacb4f52
...
...
@@ -955,6 +955,7 @@ Route::group('broker', [
'getAgentSiteList'
=>
[
'api_broker/Site/getAgentSiteList'
,
[
'method'
=>
'POST|GET'
]],
//获取经纪人站点列表
'getAgentSiteListV2'
=>
[
'api_broker/Site/getAgentSiteListV2'
,
[
'method'
=>
'POST|GET'
]],
//获取经纪人站点列表
'getPhoneBook'
=>
[
'api_broker/broker/getPhoneBook'
,
[
'method'
=>
'POST|GET'
]],
//消息页面--通讯录
'commentAndDeal'
=>
[
'api_broker/broker/commentAndDeal'
,
[
'method'
=>
'get'
]],
//获取当前经纪人的评价和交易列表
'addSpreadUser'
=>
[
'api_broker/SpreadUser/addSpreadUser'
,
[
'method'
=>
'POST|GET'
]],
...
...
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