wesmiler 2 년 전
부모
커밋
e271ebccc8
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      app/Services/Api/GoodsService.php

+ 4 - 0
app/Services/Api/GoodsService.php

@@ -101,7 +101,11 @@ class GoodsService extends BaseService
             foreach ($list['data'] as &$item) {
                 $item['supply_name'] = isset($supplyList[$item['supply_type']])? $supplyList[$item['supply_type']] : '';
             }
+            unset($item);
+        }else{
+            $this->updateGoods();
         }
+
         return [
             'total'=> isset($list['total'])? $list['total'] : 9,
             'pageSize'=> $pageSize,