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