shish 1 жил өмнө
parent
commit
96625bff04

+ 3 - 3
app-ghs/controllers/ItemController.php

@@ -974,16 +974,16 @@ class ItemController extends BaseController
             Yii::$app->redis->executeCommand('DEL', ['ghs_cashier_' . $mainId . '_' . $staffId . '_may_refresh']);
         }
 
-        $array = [];
+        $productList = [];
         if (!empty($list)) {
             foreach ($list as $key => $item) {
                 if(!empty($item)){
-                    $array = array_merge($array, $item);
+                    $productList = array_merge($productList, $item);
                 }
             }
         }
 
-        util::success(['list' => $list, 'array' => $array]);
+        util::success(['list' => $list, 'productList' => $productList]);
     }
 
     public function actionAdd()