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