@ -33,7 +33,7 @@ class couponRebateConsumer extends ConsumerMessage
//var_dump($message->getBody());
$res = $this->CouponRebateService->couponRebate($data);
//var_dump($res);
if (false) {
if (!$res) {
return Result::REQUEUE;
}
return Result::ACK;
@ -255,7 +255,8 @@ class CouponRebateService implements CouponRebateServiceInterface
->whereRaw('inventory > inventory_use')
->exists();
if(!$inventory){
return '库存不足';
//库存不足
return false;
//获取活动发放优惠券id
@ -365,7 +366,7 @@ class CouponRebateService implements CouponRebateServiceInterface
LogLabel::COUPON_LOG,
$log_Data
);
return '返券成功';
return true;
/**