|
|
|
@ -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; |
|
|
|
|