From e043558427c6c2b26ecbd251f2b7ec0fadb01343 Mon Sep 17 00:00:00 2001 From: liangyuyan <1103300295@qq.com> Date: Mon, 10 Aug 2020 16:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E8=BF=94=E5=88=B8?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8--=E5=87=8F=E5=BA=93=E5=AD=98=EF=BC=88?= =?UTF-8?q?=E5=8A=A0=E9=A2=86=E5=8F=96=E9=87=8F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/CouponRebateService.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ) ]; }