diff --git a/app/Controller/CouponController.php b/app/Controller/CouponController.php index 9fbcdde..a064f2e 100644 --- a/app/Controller/CouponController.php +++ b/app/Controller/CouponController.php @@ -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],