setter
parent
355bfa7bc8
commit
6380fffd35
|
@ -196,16 +196,19 @@ class Consumer extends Base
|
|||
}
|
||||
]);
|
||||
});
|
||||
if(empty($coupon)){
|
||||
return $this->json(4001,"优惠券不存在");
|
||||
}
|
||||
if(!isset($coupon->business)||empty($coupon->business)){
|
||||
return $this->json(4001,"优惠券商家不存在");
|
||||
}
|
||||
|
||||
|
||||
//如果优惠券所属商家指派了渠道商
|
||||
if ($coupon->business->is_assign == Business::COMMON_ON && !empty($coupon->business->agency_code)) {
|
||||
if(
|
||||
!empty($coupon)
|
||||
&&
|
||||
isset($coupon->business)
|
||||
&&
|
||||
!empty($coupon->business)
|
||||
){
|
||||
if($coupon->business->is_assign
|
||||
&&
|
||||
!empty($coupon->business->agency_code)
|
||||
){
|
||||
|
||||
$agency = Member::findOne([["business_code","=",$coupon->business->agency_code]]);
|
||||
|
||||
|
@ -223,7 +226,7 @@ class Consumer extends Base
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$whereMap = [];
|
||||
$whereMap[] = ['position', '=', Slide::advertisement];
|
||||
|
|
Loading…
Reference in New Issue