wupengfei 2 年之前
父節點
當前提交
91504edfba
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/Coupon.php

+ 1 - 1
application/api/controller/Coupon.php

@@ -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);