修改商户补贴发放的错误

This commit is contained in:
luofei 2024-02-26 14:02:42 +08:00
parent 03364edc9d
commit 9600a7fd9f

View File

@ -33,7 +33,7 @@ class ActivateCouponListen extends TimerService implements ListenerInterface
} }
$storeCouponUser = StoreCouponUser::where('coupon_id', $couponId) $storeCouponUser = StoreCouponUser::where('coupon_id', $couponId)
->where('coupon_type', StoreCouponRepository::TYPE_STORE_COUPON) ->where('coupon_type', StoreCouponRepository::TYPE_STORE_COUPON)
->where('buy', StoreCouponUserRepository::SEND_TYPE_BUY) ->where('type', StoreCouponUserRepository::SEND_TYPE_BUY)
->where('status', StoreCouponUserRepository::STATUS_REPEAL) ->where('status', StoreCouponUserRepository::STATUS_REPEAL)
->select(); ->select();
foreach ($storeCouponUser as $item) { foreach ($storeCouponUser as $item) {