diff --git a/app/Service/CouponRebateService.php b/app/Service/CouponRebateService.php index be0225a..660e433 100644 --- a/app/Service/CouponRebateService.php +++ b/app/Service/CouponRebateService.php @@ -61,6 +61,7 @@ class CouponRebateService implements CouponRebateServiceInterface $userReceiveCouponIds = $ssdb->exec('hgetall', SsdbKeysPrefix::COUPON_REBATE_RECEIVE . $couponActivity . $userId); if($userReceiveCouponIds !== false){ $ids = array_diff($idsData, $userReceiveCouponIds); + $receiveSsdb = $userReceiveCouponIds; }else{ $ids = $idsData; } @@ -129,7 +130,7 @@ class CouponRebateService implements CouponRebateServiceInterface if ( $couponReceive->save() && $coupon->save() ) { $success[] = $coupon; - $receiveSsdb[] = $coupon->id;; + $receiveSsdb[] = $coupon->id; } }else{ $fail[] = $coupon;