wesmiler 1 year ago
parent
commit
1cbd61fd22
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/Services/Api/GoodsService.php

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

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