wesmiler 2 years ago
parent
commit
1925495dcb
1 changed files with 2 additions and 2 deletions
  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)) {