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)) {