Merge branch 'dev'
This commit is contained in:
commit
fea5e0f3b8
@ -51,15 +51,15 @@ class CouponService extends BaseService
|
||||
}
|
||||
|
||||
// 判断用户是否已有该优惠卷
|
||||
// $params = array();
|
||||
// $params['user_id'] = $user_id;
|
||||
// $params['coupon_id'] = $coupon['coupon_id'];
|
||||
// $user_coupon = UserCoupon::getOne($params);
|
||||
// if (!empty($user_coupon)){
|
||||
// if ($user_coupon['user_coupon_status'] == 0){
|
||||
// return true;
|
||||
// }
|
||||
// }
|
||||
$params = array();
|
||||
$params['user_id'] = $user_id;
|
||||
$params['coupon_id'] = $coupon['coupon_id'];
|
||||
$user_coupon = UserCoupon::getOne($params);
|
||||
if (!empty($user_coupon)){
|
||||
if ($user_coupon['user_coupon_status'] == 0){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 判断该优惠卷状态
|
||||
if ($coupon['coupon_status'] != 1){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user