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
b80e006f
Commit
b80e006f
authored
Dec 13, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索bug
parent
4516bf45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Shop.php
application/api/controller/Shop.php
+2
-2
No files found.
application/api/controller/Shop.php
View file @
b80e006f
...
@@ -95,7 +95,7 @@ class Shop extends Basic
...
@@ -95,7 +95,7 @@ class Shop extends Basic
$conditions
[
'price'
]
=
array
(
'egt'
,
$params
[
'money_start'
]
);
$conditions
[
'price'
]
=
array
(
'egt'
,
$params
[
'money_start'
]
);
}
}
if
(
isset
(
$params
[
'shangpu_tags'
])
&&
$params
[
'shangpu_tags'
]
!=
-
1
)
{
//商铺标签
if
(
isset
(
$params
[
'shangpu_tags'
])
&&
$params
[
'shangpu_tags'
]
!=
"全部"
)
{
//商铺标签
$shangpuTagsArr
=
array_filter
(
explode
(
','
,
$params
[
'shangpu_tags'
]));
$shangpuTagsArr
=
array_filter
(
explode
(
','
,
$params
[
'shangpu_tags'
]));
if
(
count
(
$shangpuTagsArr
)
==
1
)
{
if
(
count
(
$shangpuTagsArr
)
==
1
)
{
$conditions
[
'shangpu_tags'
]
=
array
(
'like'
,
"%"
.
trim
(
$shangpuTagsArr
[
0
])
.
"%"
);
$conditions
[
'shangpu_tags'
]
=
array
(
'like'
,
"%"
.
trim
(
$shangpuTagsArr
[
0
])
.
"%"
);
...
@@ -198,7 +198,7 @@ class Shop extends Basic
...
@@ -198,7 +198,7 @@ class Shop extends Basic
$result
[
'acreage'
]
=
array
(
array
(
'id'
=>
'-1'
,
'value'
=>
'全部'
),
array
(
'id'
=>
'0'
,
'value'
=>
'30m²以内'
),
$result
[
'acreage'
]
=
array
(
array
(
'id'
=>
'-1'
,
'value'
=>
'全部'
),
array
(
'id'
=>
'0'
,
'value'
=>
'30m²以内'
),
array
(
'id'
=>
'1'
,
'value'
=>
'30-60m²'
),
array
(
'id'
=>
'2'
,
'value'
=>
'60-100m²'
),
array
(
'id'
=>
'3'
,
'value'
=>
'100m²以上'
)
);
array
(
'id'
=>
'1'
,
'value'
=>
'30-60m²'
),
array
(
'id'
=>
'2'
,
'value'
=>
'60-100m²'
),
array
(
'id'
=>
'3'
,
'value'
=>
'100m²以上'
)
);
$result
[
'more'
][]
=
"
更多
"
;
$result
[
'more'
][]
=
"
全部
"
;
$labelsResult
=
$this
->
labels
->
getLabels
();
$labelsResult
=
$this
->
labels
->
getLabels
();
if
(
count
(
$labelsResult
)
>
0
)
{
if
(
count
(
$labelsResult
)
>
0
)
{
foreach
(
$labelsResult
as
$labelsKey
=>
$labelsVal
)
{
foreach
(
$labelsResult
as
$labelsKey
=>
$labelsVal
)
{
...
...
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