修改增收补贴发放的错误
This commit is contained in:
parent
cf1a38ea0f
commit
6874dab755
@ -220,6 +220,7 @@ class StoreCouponUserRepository extends BaseRepository
|
||||
return $model;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
throw new \Exception($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,6 +46,7 @@ class SendSubsidyCouponListen extends TimerService implements ListenerInterface
|
||||
$userCouponRepo = app()->make(StoreCouponUserRepository::class);
|
||||
$coupon->coupon_price = $amount;
|
||||
$userCouponRepo->status = StoreCouponUser::STATUS_REPEAL;
|
||||
$userCouponRepo->uid = $merchant['uid'];
|
||||
$userCouponRepo->coupon = $coupon;
|
||||
$userCouponRepo->order = ['uid' => $merchant['uid'],];
|
||||
$userCouponRepo->extra = [
|
||||
@ -57,6 +58,7 @@ class SendSubsidyCouponListen extends TimerService implements ListenerInterface
|
||||
$userCouponRepo->onlyDetail = true;
|
||||
$userCouponRepo->detailStatus = StoreCouponDetail::STATUS_INVALID;
|
||||
$userCouponRepo->sendStatus = StoreCouponDetail::SEND_REPEAL;
|
||||
$userCouponRepo->sendType = StoreCouponUserRepository::SEND_TYPE_SEND;
|
||||
$userCouponRepo->send();
|
||||
$count++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user