Browse Source

优惠券返券活动--减库存(加领取量)

master
liangyuyan 6 years ago
parent
commit
e043558427
  1. 6
      app/Service/CouponRebateService.php

6
app/Service/CouponRebateService.php

@ -106,7 +106,7 @@ class CouponRebateService implements CouponRebateServiceInterface
if(!$isReceive){
//记录已领取的数量
$coupon->inventory_use += $couponReceiveType->number;
$coupon->inventory_use += $couponReceiveType->one_receive_number;
$couponReceive = new CouponRec;
$couponReceive->user_id = $userId;
@ -378,9 +378,7 @@ class CouponRebateService implements CouponRebateServiceInterface
if($get > 0){
return [
$ssdb->exec('hgetAll', SsdbKeysPrefix::COUPON_REBATE_RECEIVE . $activity . $userId ),
$ssdb->exec('hgetAll', SsdbKeysPrefix::COUPON_REBATE_RECEIVE . $userId ),
SsdbKeysPrefix::COUPON_REBATE_RECEIVE . $activity . $userId
$ssdb->exec('hgetAll', SsdbKeysPrefix::COUPON_REBATE_RECEIVE . $activity . $userId )
];
}

Loading…
Cancel
Save