浏览代码

券限制

liugc 1 年之前
父节点
当前提交
958601f9d8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/api/logic/UserCouponLogic.php

+ 1 - 1
app/api/logic/UserCouponLogic.php

@@ -48,7 +48,7 @@ class UserCouponLogic extends BaseLogic
                         continue;
                     }
                 }else{
-                    if($userCoupon->where('coupon_id',$v->id)->count()){
+                    if($userCoupon->where('coupon_id',$v->id)->where('property_activity_id',0)->count()){
                         $errMsgArr[] = $v->event_name . '已经领取过了,请勿重复领取';
                         continue;
                     }