diff --git a/app/Service/CouponRebateService.php b/app/Service/CouponRebateService.php index 233a4ae..138b7a9 100644 --- a/app/Service/CouponRebateService.php +++ b/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 ) ]; }