FeiLiao 2 лет назад
Родитель
Сommit
cca42c6e5c
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      crmeb/app/dao/product/product/StoreProductDao.php

+ 1 - 0
crmeb/app/dao/product/product/StoreProductDao.php

@@ -126,6 +126,7 @@ class StoreProductDao extends BaseDao
                 })->field('product_id')->select();
             });
         })->when(isset($where['coupon_category_id']) && $where['coupon_category_id'] != '', function ($query) use ($where) {
+            $where['coupon_category_id'] = stringToIntArray($where['coupon_category_id']);
             $query->whereIn('id', function ($query) use ($where) {
                 $query->name('store_product_cate')->whereIn('cate_id', function ($query) use ($where) {
                     $query->name('store_category')->whereIn('pid', $where['coupon_category_id'])->field('id')->select();