Commit 08dda557 authored by hujun's avatar hujun

where

parent 514812af
......@@ -145,18 +145,19 @@ class CouponService{
}
}
if ($type == 0) {
if ($invitee_id) {
$count_where['invitee_id'] = $invitee_id;
}
$count_where['activity_id'] = $v['id'];
$num = $this->m_coupon->getCount($count_where); //是否邀请过该客户
if ($num > 0) {
continue;
if ($v['available'] != -1) {
if ($type == 0) {
if ($invitee_id) {
$count_where['invitee_id'] = $invitee_id;
}
$count_where['activity_id'] = $v['id'];
$num = $this->m_coupon->getCount($count_where); //是否邀请过该客户
if ($num > 0) {
continue;
}
}
}
if ($v['available'] != -1) {
$where['user_id'] = $user_id;
$where['activity_id'] = $v['id'];
$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