dever 3 years ago
parent
commit
be3845be50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/shop/lib/Coupon.php

+ 1 - 1
app/shop/lib/Coupon.php

@@ -90,7 +90,7 @@ class Coupon
             # 验证是否已经领取,一周内不能再次领取
             $user = Dever::db('shop/user_coupon')->getOne(array('uid' => $uid, 'coupon_id' => $data['id']));
 
-            if ($user && time() - $user['cdate'] < 86400*7) {
+            if ($user && time() - $user['cdate'] < 86400*30) {
                 Dever::alert('您已领取过该优惠劵');
                 return false;
             }