shish 1 ano atrás
pai
commit
b48080128c
1 arquivos alterados com 11 adições e 1 exclusões
  1. 11 1
      app-hd/controllers/ItemController.php

+ 11 - 1
app-hd/controllers/ItemController.php

@@ -101,7 +101,17 @@ class ItemController extends BaseController
         $where['status'] = 1;
 
         $list = \bizHd\item\classes\ItemClass::getShowList($where);
-        util::success(['list' => $list]);
+
+        $productList = [];
+        if (!empty($list)) {
+            foreach ($list as $key => $item) {
+                if (!empty($item)) {
+                    $productList = array_merge($productList, $item);
+                }
+            }
+        }
+
+        util::success(['list' => $list, 'productList' => $productList]);
     }
 
     public function actionAdd()