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
33d16f1d
Commit
33d16f1d
authored
Nov 23, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索商铺地址
parent
4b50b1b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
Shop.php
application/api_broker/controller/Shop.php
+23
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/Shop.php
View file @
33d16f1d
...
@@ -819,4 +819,27 @@ class Shop extends Basic
...
@@ -819,4 +819,27 @@ class Shop extends Basic
return
$this
->
response
(
$code
,
$msg
,
$data
);
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
}
/**
* 搜索商铺地址
*
* @return \think\Response
*/
public
function
getHouseAddress
()
{
if
(
empty
(
$this
->
params
[
'address'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$data
=
[];
$msg
=
""
;
try
{
$m_house
=
new
GHouses
();
$data
=
$m_house
->
getHouseInfo
(
'id,internal_address as address'
,
[
'internal_address'
=>
[
'LIKE'
,
$this
->
params
[
'address'
]
.
'%'
]]);
$code
=
200
;
}
catch
(
\Exception
$e
)
{
$code
=
101
;
$msg
=
"内部错误:"
.
$e
->
getMessage
();
}
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
}
}
application/route.php
View file @
33d16f1d
...
@@ -704,6 +704,7 @@ Route::group('broker', [
...
@@ -704,6 +704,7 @@ Route::group('broker', [
'addFollow'
=>
[
'api_broker/AppointmentShop/addFollow'
,
[
'method'
=>
'POST'
]
],
//我的客户跟进
'addFollow'
=>
[
'api_broker/AppointmentShop/addFollow'
,
[
'method'
=>
'POST'
]
],
//我的客户跟进
'addSpreadUser'
=>
[
'api_broker/SpreadUser/addSpreadUser'
,
[
'method'
=>
'get'
]
],
'addSpreadUser'
=>
[
'api_broker/SpreadUser/addSpreadUser'
,
[
'method'
=>
'get'
]
],
'getVolume'
=>
[
'api_broker/SpreadUser/getVolume'
,
[
'method'
=>
'get'
]
],
'getVolume'
=>
[
'api_broker/SpreadUser/getVolume'
,
[
'method'
=>
'get'
]
],
'getHouseAddress'
=>
[
'api_broker/shop/getHouseAddress'
,
[
'method'
=>
'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