Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
梁志锋
2016-03-11 20:48:51 +0800
Commit
f2acac1ea41862cc8173234e32a2fd0c0f5ce0c6
2 parents
c8efc386
6a2f57a0
Merge remote-tracking branch 'remotes/origin/develop/wap' into stable/wap
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/models/Category/Class.php
yohobuy/m.yohobuy.com/application/models/Category/Class.php
View file @
f2acac1
...
...
@@ -126,6 +126,10 @@ class ClassModel
foreach
(
$data
as
$item
)
{
$id
=
$item
[
'category_id'
];
$result
[
'first'
][
$id
]
=
$item
[
'category_name'
];
if
(
!
isset
(
$item
[
'sub'
]))
{
continue
;
}
foreach
(
$item
[
'sub'
]
as
$sub
)
{
$id
=
$sub
[
'category_id'
];
$result
[
'second'
][
$id
]
=
$sub
[
'category_name'
];
...
...
Please
register
or
login
to post a comment