|
|
@@ -25,13 +25,13 @@ class GoodsLogic extends BaseLogic
|
|
|
*/
|
|
|
public static function detail($id,$type){
|
|
|
if($type == 'category'){
|
|
|
- $goods = Goods::where(['goods_category_id'=>$id,'user_id'=>0,'is_agent'=>0,'is_activity'=>0])->visible([
|
|
|
+ $goods = Goods::where(['goods_category_id'=>$id,'user_id'=>0,'is_agent'=>0,'is_activity'=>0,'platform_value'=>0])->visible([
|
|
|
'id','goods_image','goods_name','goods_banners','good_unit','sell_num','base_service_fee',
|
|
|
'service_total','service_fee','service_image','fee_schedule','warranty_period','goods_payment_type','goods_category_id'
|
|
|
])->select()->toArray();
|
|
|
}else{
|
|
|
$goods_category_id = Goods::where('id',$id)->value('goods_category_id');
|
|
|
- $goods = Goods::where(['goods_category_id'=>$goods_category_id,'user_id'=>0,'is_agent'=>0,'is_activity'=>0])->visible([
|
|
|
+ $goods = Goods::where(['goods_category_id'=>$goods_category_id,'user_id'=>0,'is_agent'=>0,'is_activity'=>0,'platform_value'=>0])->visible([
|
|
|
'id','goods_image','goods_name','goods_banners','good_unit','sell_num','base_service_fee',
|
|
|
'service_total','service_fee','service_image','fee_schedule','warranty_period','goods_payment_type','goods_category_id'
|
|
|
])->select()->toArray();
|
|
|
@@ -72,7 +72,7 @@ class GoodsLogic extends BaseLogic
|
|
|
}
|
|
|
|
|
|
public static function eventDetail($id,$userId){
|
|
|
- $goods = Goods::where(['id'=>$id])->visible([
|
|
|
+ $goods = Goods::where(['id'=>$id])->where(['platform_value'=>0])->visible([
|
|
|
'id','goods_image','goods_name','goods_banners','good_unit','sell_num','base_service_fee',
|
|
|
'service_total','service_fee','service_image','fee_schedule','warranty_period','goods_payment_type','goods_category_id'
|
|
|
])->select()
|
|
|
@@ -122,7 +122,7 @@ class GoodsLogic extends BaseLogic
|
|
|
|
|
|
public static function getHotData()
|
|
|
{
|
|
|
- return Goods::where(['user_id'=>0,'is_hot'=>1])
|
|
|
+ return Goods::where(['user_id'=>0,'is_hot'=>1,'platform_value'=>0])
|
|
|
->with('goodsCategory')
|
|
|
->visible(['id','goods_name','goods_image'])
|
|
|
->order(['top_weight' => 'desc', 'id' => 'desc'])
|