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
53f179ef
Commit
53f179ef
authored
Jun 03, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认无重盘楼盘字典
parent
cad77f4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
Shop.php
application/api_broker/controller/Shop.php
+27
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/Shop.php
View file @
53f179ef
...
...
@@ -21,6 +21,7 @@ use app\model\GHousesVideo;
use
app\model\GImageDepot
;
use
app\model\GLandlordPhone
;
use
app\model\OBargainModel
;
use
app\model\OfficeGBuilding
;
use
app\model\OReportModel
;
use
app\model\Regions
;
use
think\Log
;
...
...
@@ -1059,6 +1060,32 @@ class Shop extends Basic
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
/**
* 搜索楼盘字典地址
*
* @return \think\Response
*/
public
function
getOfficeBuildingAddress
()
{
if
(
empty
(
$this
->
params
[
'address'
])
||
empty
(
$this
->
params
[
'city'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$data
=
[];
$msg
=
""
;
try
{
$m_house
=
new
OfficeGBuilding
();
$where
[
'internal_address'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'address'
]
.
'%'
];
$where
[
'city'
]
=
$this
->
params
[
'city'
];
$data
=
$m_house
->
getFindData
(
'id,address'
,
$where
);
$code
=
200
;
}
catch
(
\Exception
$e
)
{
$code
=
101
;
$msg
=
"内部错误:"
.
$e
->
getMessage
();
}
return
$this
->
response
(
$code
,
$msg
,
$data
);
}
private
function
getBusinessDistrictNameById
(
$businessDistrictId
){
$model
=
new
GBusinessDistrict
();
$params
[
"id"
]
=
$businessDistrictId
;
...
...
application/route.php
View file @
53f179ef
...
...
@@ -970,6 +970,7 @@ Route::group('office', [
'delBuildingFile'
=>
[
'api_broker/OfficeBuilding/delHouseFile'
,
[
'method'
=>
'POST'
]],
//删除楼盘图片
'getBuildingSearch'
=>
[
'api_broker/OfficeRoom/getBuildingSearch'
,
[
'method'
=>
'GET'
]],
//搜索楼盘
'getBuildingDetail'
=>
[
'api_broker/OfficeRoom/getBuildingDetail'
,
[
'method'
=>
'GET'
]],
//楼盘详情
'getOfficeBuildingAddress'
=>
[
'api_broker/shop/getOfficeBuildingAddress'
,
[
'method'
=>
'GET'
]],
//确认无重盘楼盘字典
'getOfficeRoomInfo'
=>
[
'api_broker/OfficeRoom/getOfficeRoomInfo'
,
[
'method'
=>
'GET|POST'
]
],
//获取房源详情
]);
...
...
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