Jelajahi Sumber

交易记录

lyh 2 tahun lalu
induk
melakukan
c5926b753e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Services/Api/GoodsCategoryService.php

+ 1 - 1
app/Services/Api/GoodsCategoryService.php

@@ -88,7 +88,7 @@ class GoodsCategoryService extends BaseService
                 }
 
                 // 商户
-                $ids = isset($params['ids']) ? $params['ids'] : 0;
+                $ids = isset($params['ids']) ? $params['ids'] : [];
                 if (count($ids) > 0) {
                     $query->whereIn('a.id', $ids);
                 }