dever %!s(int64=3) %!d(string=hai) anos
pai
achega
36e940501d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/shop/lib/Coupon.php

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

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