wesmiler 1 년 전
부모
커밋
1cbd61fd22
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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)) {