rabin 2 năm trước cách đây
mục cha
commit
9efd9be9ca
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      app/card/lib/Goods_set.php

+ 3 - 0
app/card/lib/Goods_set.php

@@ -27,6 +27,7 @@ class Goods_set
                 $result[$i]['name'] = $v['name'];
                 $result[$i]['select'] = 2;
                 $result[$i]['del'] = 1;
+                $result[$i]['total'] = 0;
                 $result[$i]['children'] = array();
 
                 $w['top_category_id'] = $v['id'];
@@ -40,6 +41,7 @@ class Goods_set
                             'name' => $v1['name'],
                             'del' => 1,
                             'select' => 2,
+                            'total' => 1,
                             'end' => true,
                         );
 
@@ -48,6 +50,7 @@ class Goods_set
                         if ($bind) {
                             $children['select'] = 1;
                         }
+                        $result[$i]['total'] += 1;
                         $result[$i]['children'][] = $children;
                     }