wesmiler преди 1 година
родител
ревизия
1925495dcb
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      app/Services/Api/GoodsService.php

+ 2 - 2
app/Services/Api/GoodsService.php

@@ -229,8 +229,8 @@ class GoodsService extends BaseService
         $updated = 0;
         $error = 0;
         $datas = SupplyService::make()->getApiData('getGoodsCategory', $params);
-        if ($datas && $datas['list']) {
-            foreach ($datas['list'] as &$item) {
+        if ($datas && $datas['data']) {
+            foreach ($datas['data'] as &$item) {
                 $goodsId = isset($item['goods_id']) ? $item['goods_id'] : 0;
                 if ($goodsId && !$this->checkGoods($goodsId)) {