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