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
Plain Diff
Browse Files
Authored by
徐祁xuqi
9 years ago
Commit
6b88f61defb8f60031372389833b511a2638a696
2 parents
5b8047a5
bc886360
Merge remote-tracking branch 'origin/hotfix/brandOrder'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
View file @
6b88f61
...
...
@@ -108,12 +108,14 @@ class BrandModel
$list
[
'url'
]
=
Helpers
::
url
(
''
,
null
,
$row
[
'brand_domain'
]);
$build
[
'list'
][]
=
$list
;
}
$result
[
'brandList'
][]
=
$build
;
if
(
$char
!==
'0~9'
)
{
$result
[
'brandList'
][]
=
$build
;
}
else
{
$lastBrand
=
$build
;
}
}
//第一个元素放到最后
$lastBrand
=
$result
[
'brandList'
][
0
];
unset
(
$result
[
'brandList'
][
0
]);
$result
[
'brandList'
][]
=
$lastBrand
;
//第一个元素放到最后
$result
[
'brandList'
]
=
array_values
(
$result
[
'brandList'
]);
}
//新入驻品牌
...
...
Please
register
or
login
to post a comment