Commit 08dda557 authored by hujun's avatar hujun

where

parent 514812af
...@@ -145,18 +145,19 @@ class CouponService{ ...@@ -145,18 +145,19 @@ class CouponService{
} }
} }
if ($type == 0) { if ($v['available'] != -1) {
if ($invitee_id) { if ($type == 0) {
$count_where['invitee_id'] = $invitee_id; if ($invitee_id) {
} $count_where['invitee_id'] = $invitee_id;
$count_where['activity_id'] = $v['id']; }
$num = $this->m_coupon->getCount($count_where); //是否邀请过该客户 $count_where['activity_id'] = $v['id'];
if ($num > 0) { $num = $this->m_coupon->getCount($count_where); //是否邀请过该客户
continue; if ($num > 0) {
continue;
}
} }
}
if ($v['available'] != -1) {
$where['user_id'] = $user_id; $where['user_id'] = $user_id;
$where['activity_id'] = $v['id']; $where['activity_id'] = $v['id'];
$where['status'] = ['<>',2]; $where['status'] = ['<>',2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment