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