|
@@ -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('您已领取过该优惠劵');
|