feat: 移除产品统计逻辑中的无效店铺名称过滤

This commit is contained in:
mkm 2024-06-21 14:52:28 +08:00
parent 1fb3f295ad
commit 7f4decf79a

View File

@ -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'];