Commit f4a98c05 authored by hujun's avatar hujun

where

parent 44b233fe
...@@ -146,7 +146,9 @@ class CouponService{ ...@@ -146,7 +146,9 @@ class CouponService{
} }
if ($type == 0) { if ($type == 0) {
$count_where['invitee_id'] = $invitee_id; if ($invitee_id) {
$count_where['invitee_id'] = $invitee_id;
}
$num = $this->m_coupon->getCount($count_where); //是否邀请过该客户 $num = $this->m_coupon->getCount($count_where); //是否邀请过该客户
if ($num > 0) { if ($num > 0) {
continue; continue;
......
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