|
|
@@ -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()
|