|  | @@ -50,11 +50,13 @@ class Card
 | 
											
												
													
														|  |  			if ($one) {
 |  |  			if ($one) {
 | 
											
												
													
														|  |  				return $one;
 |  |  				return $one;
 | 
											
												
													
														|  |  			} else {
 |  |  			} else {
 | 
											
												
													
														|  | -				$state = Dever::lock($this->lock . '_' . $info['id']);
 |  | 
 | 
											
												
													
														|  | 
 |  | +				//$state = Dever::lock($this->lock . '_' . $info['id']);
 | 
											
												
													
														|  | 
 |  | +				$state = true;
 | 
											
												
													
														|  |  				if (!$state) {
 |  |  				if (!$state) {
 | 
											
												
													
														|  |  					Dever::alert('error');
 |  |  					Dever::alert('error');
 | 
											
												
													
														|  |  				} else {
 |  |  				} else {
 | 
											
												
													
														|  |  					$list = Dever::db('youzan/card_list')->getAll(array('option_card_id' => $info['id'], 'option_status' => 1));
 |  |  					$list = Dever::db('youzan/card_list')->getAll(array('option_card_id' => $info['id'], 'option_status' => 1));
 | 
											
												
													
														|  | 
 |  | +					print_r($list);die;
 | 
											
												
													
														|  |  					$key = array_rand($list);
 |  |  					$key = array_rand($list);
 | 
											
												
													
														|  |  					if (isset($list[$key]) && $list[$key]) {
 |  |  					if (isset($list[$key]) && $list[$key]) {
 | 
											
												
													
														|  |  						$card = $list[$key];
 |  |  						$card = $list[$key];
 |