|
@@ -145,7 +145,7 @@ class Coupon extends Base
|
|
|
$exchange_num = 0;
|
|
|
foreach ($coupon_list as $v) {
|
|
|
$has_num = UserCouponList::getUserCouponNum($this->user_id,$v['id']);
|
|
|
- var_dump($v['code'] ,$code);continue;
|
|
|
+ var_dump($v['code'] ,$code,$v['code'] !== $code);continue;
|
|
|
if($has_num >= $v['user_num'] && $v['code'] !== $code) continue;
|
|
|
$exchange_num++;
|
|
|
UserCouponList::saveUserCoupon($v,$this->user_id);
|