Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
e6cb6afc754dc38d326459000a70baf616b3a6e6
1 parent
00ddeb8f
品牌一览 brand_domain 判断是否存在
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
View file @
e6cb6af
...
...
@@ -102,6 +102,9 @@ class BrandModel
$build
[
'title'
]
=
$char
;
$build
[
'list'
]
=
array
();
foreach
(
$value
as
$row
)
{
if
(
empty
(
$row
[
'brand_domain'
]))
{
continue
;
}
$list
[
'name'
]
=
$row
[
'brand_name'
];
$list
[
'isHot'
]
=
(
isset
(
$row
[
'is_hot'
])
&&
$row
[
'is_hot'
]
===
'Y'
)
?
true
:
false
;
$list
[
'isNew'
]
=
(
isset
(
$row
[
'is_show_new'
])
&&
$row
[
'is_show_new'
]
===
'Y'
)
?
true
:
false
;
...
...
Please
register
or
login
to post a comment