|
|
|
@ -33,11 +33,9 @@ class CouponController extends BaseController |
|
|
|
$c_ids = CouponUserRecType::where('receive_type', $receive_type)->pluck('system_coupon_user_id'); |
|
|
|
$nowTime = time(); |
|
|
|
$cr_ids = CouponRec::where([ |
|
|
|
['user_id'=>$user_id], |
|
|
|
['receive_type'=>$receive_type] |
|
|
|
] |
|
|
|
)->pluck('system_coupon_user_id'); |
|
|
|
|
|
|
|
['user_id',"=",$user_id], |
|
|
|
['receive_type',"=",$receive_type] |
|
|
|
])->pluck('system_coupon_user_id'); |
|
|
|
// $ids = array_merge($c_ids->toArray(), $cr_ids->toArray());
|
|
|
|
//
|
|
|
|
// //领过券的ID
|
|
|
|
@ -52,7 +50,6 @@ class CouponController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$c = Db::table('ims_system_coupon_user as u') |
|
|
|
->where([ |
|
|
|
['u.end_time','>',$nowTime], |
|
|
|
|