修改分类
This commit is contained in:
@@ -270,6 +270,7 @@ class TopicNas extends Common
|
|||||||
if (!$article_categorys->isEmpty()) {
|
if (!$article_categorys->isEmpty()) {
|
||||||
foreach ($article_categorys->toArray() as $kk=>$vv) {
|
foreach ($article_categorys->toArray() as $kk=>$vv) {
|
||||||
if ( $parent == $vv['pid'] ) {
|
if ( $parent == $vv['pid'] ) {
|
||||||
|
$vv['child'] = '';
|
||||||
array_push($article_categorys_new,$vv);
|
array_push($article_categorys_new,$vv);
|
||||||
} else {
|
} else {
|
||||||
$article_categorys_two[$vv['pid']][] = $vv;
|
$article_categorys_two[$vv['pid']][] = $vv;
|
||||||
|
|||||||
Reference in New Issue
Block a user