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
Rock Zhang
2016-03-11 20:44:24 +0800
Commit
316bdc203f8d06c2ac4622d753e35ea60138da7b
1 parent
4111e547
添加对不存在二级品类的数据进行验证的逻辑
Code Review By Rock Zhang
Show 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 @
316bdc2
...
...
@@ -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