diff --git a/app/admin/logic/statistic/ProductStatisticLogic.php b/app/admin/logic/statistic/ProductStatisticLogic.php index b7261ab69..b1ddd460f 100644 --- a/app/admin/logic/statistic/ProductStatisticLogic.php +++ b/app/admin/logic/statistic/ProductStatisticLogic.php @@ -34,9 +34,6 @@ class ProductStatisticLogic extends BaseLogic 'COUNT(distinct(pay_uid))-1 as repeats' ])->group('product_id')->order('pay' , ' desc')->limit(20)->select()->toArray(); foreach ($list as $key => &$item) { - if (!$item['store_name']) { - unset($list[$key]); - } $find=StoreProduct::where('id',$item['product_id'])->field('store_name,image')->find(); $item['store_name']=$find['store_name']; $item['image']=$find['image'];