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
0d1057efa2d67503887599448cdda342b3c5326a
1 parent
1b7b0dad
brands 判断接口参数是否存在
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
View file @
0d1057e
...
...
@@ -168,6 +168,10 @@ class BrandModel
foreach
(
$brand
[
'data'
][
'brands'
]
as
$char
=>
$value
)
{
$build
=
array
();
foreach
(
$value
as
$row
)
{
if
(
empty
(
$row
[
'brand_domain'
]))
{
continue
;
}
$list
=
array
();
$list
[
'name'
]
=
$row
[
'brand_name'
];
$list
[
'isHot'
]
=
(
$row
[
'is_hot'
]
===
'Y'
)
?
true
:
false
;
...
...
Please
register
or
login
to post a comment