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
2db73d47
Commit
2db73d47
authored
Dec 15, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺类型
parent
f7d10912
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Shop.php
application/api/controller/Shop.php
+4
-0
No files found.
application/api/controller/Shop.php
View file @
2db73d47
...
...
@@ -38,6 +38,7 @@ class Shop extends Basic
"site_area" => 2, //来源 1首页 2搜索
"title" => "尚美",
"carefully_chosen" => 0, //精选商铺--0是1否
"shangpu_type"=> 0, //商铺类型(0商场,1街铺)
"disc" => "黄浦区",
"yetai" => "休闲娱乐",
"area_start" => 45,//面积起始范围 room_area2
...
...
@@ -79,6 +80,9 @@ class Shop extends Basic
if
(
isset
(
$params
[
'yetai'
]))
{
//业态
$conditions
[
'yetai'
]
=
array
(
'like'
,
"%"
.
trim
(
$params
[
'yetai'
])
.
"%"
);
}
if
(
isset
(
$params
[
'shangpu_type'
]))
{
//商铺类型
$conditions
[
'shangpu_type'
]
=
array
(
"eq"
,
$params
[
'disc'
]
);
}
//面积 room_area最小面积 room_area2最大面积 参考老版本
if
(
isset
(
$params
[
'area_start'
])
&&
isset
(
$params
[
'area_end'
]))
{
...
...
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