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
fb0474d2
Commit
fb0474d2
authored
Jan 04, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h5详情
parent
dbbe6239
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Index.php
application/app/controller/Index.php
+6
-2
No files found.
application/app/controller/Index.php
View file @
fb0474d2
...
...
@@ -73,7 +73,8 @@ class Index
*/
public
function
getShopDetail
()
{
$id
=
$_POST
[
"id"
];
$id
=
$_POST
[
"id"
]
?
$_POST
[
"id"
]
:
$_GET
[
"id"
];
$field
=
"id,management_fee,title,address,city,room_area,room_area2,business_area,disc,disccircles,sales,slotting_fee,transfer_fee,
yetai,room_area2,shangpu_type,is_test,sellingpoint,singn_rule,business_date,start_business_date,opentime,has_gas,traffic,
room_num_left,room_num_total,shangpu_tags,carefully_chosen,price,dish,file_path"
;
...
...
@@ -87,13 +88,16 @@ class Index
$conditions
[
'show_all'
]
=
array
(
'eq'
,
0
);
//只显示公开楼盘
$result
=
$this
->
db
->
getHouseDetail
(
$field
,
$conditions
);
if
(
count
(
$result
)
>
0
){
$result
[
"api_path"
]
=
IMG_PATH
;
$param
[
"house_id"
]
=
$id
;
$result
[
"images"
]
=
$this
->
dbImg
->
getHouseImages
(
$param
,
15
);
$param
[
"imgtype"
]
=
4
;
//图片类型:1效果图,2实景图,3样板图,4户型图,5交通图
$result
[
"plan_images"
]
=
$this
->
dbImg
->
getHouseImages
(
$param
,
4
);
if
(
$result
[
'room_num_left'
]
==
0
)
{
return
$this
->
response
(
"101"
,
'此楼盘已下架'
);
}
}
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
...
...
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