修复错误
This commit is contained in:
parent
219a8ca39e
commit
63546eca45
@ -90,7 +90,6 @@ class Merchant extends BaseModel
|
|||||||
$data = [];
|
$data = [];
|
||||||
$make = app()->make(StoreActivityRepository::class);
|
$make = app()->make(StoreActivityRepository::class);
|
||||||
foreach ($list as $item) {
|
foreach ($list as $item) {
|
||||||
halt(1);
|
|
||||||
$spu_id = Spu::where('product_id',$item->product_id)->where('product_type' ,$item->product_type)->value('spu_id');
|
$spu_id = Spu::where('product_id',$item->product_id)->where('product_type' ,$item->product_type)->value('spu_id');
|
||||||
$act = $make->getActivityBySpu(StoreActivityRepository::ACTIVITY_TYPE_BORDER,$spu_id,$item['cate_id'],$item['mer_id']);
|
$act = $make->getActivityBySpu(StoreActivityRepository::ACTIVITY_TYPE_BORDER,$spu_id,$item['cate_id'],$item['mer_id']);
|
||||||
$item['border_pic'] = $act['pic'] ?? '';
|
$item['border_pic'] = $act['pic'] ?? '';
|
||||||
|
@ -311,8 +311,11 @@ class MerchantRepository extends BaseRepository
|
|||||||
}
|
}
|
||||||
$item['distance'] = $distance;
|
$item['distance'] = $distance;
|
||||||
}
|
}
|
||||||
if(isset($where['type_id'])){
|
if(isset($where['type_id'])&& $where['type_id']==12){
|
||||||
$item['recommend'] = $item['AllRecommendType'];
|
$item['recommend'] = $item['AllRecommendType'];
|
||||||
|
}else{
|
||||||
|
$item['recommend'] = isset($where['delivery_way']) ? $item['CityRecommend'] : $item['AllRecommend'];
|
||||||
|
|
||||||
}
|
}
|
||||||
return $item;
|
return $item;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user