|
@@ -779,8 +779,8 @@ class OrderService
|
|
|
// ->where('coupon_goods.join_coupon_goods_sku_id', $good['sku_id'])
|
|
|
->where('join_goods_coupon_id', $couponId)
|
|
|
->where('coupon_detail.join_coupon_detail_member_id', $memberId)
|
|
|
- ->where('coupon_detail.coupon_detail_gain_datetime', '<', date('Y-m-d H:i:s'))
|
|
|
- ->where('coupon_detail.coupon_detail_deadline_datetime', '>', date('Y-m-d H:i:s'));
|
|
|
+ ->where('coupon_detail.coupon_detail_gain_datetime', '<=', date('Y-m-d H:i:s'))
|
|
|
+ ->where('coupon_detail.coupon_detail_deadline_datetime', '>=', date('Y-m-d H:i:s'));
|
|
|
if ($settlementNow == 'Y') {
|
|
|
$couponDetail = $couponDetail->whereIn('coupon_detail.coupon_detail_status', ['ACTIVED']);
|
|
|
} else {
|