dever 7 년 전
부모
커밋
8275f11500
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      youzan/src/Card.php

+ 3 - 1
youzan/src/Card.php

@@ -50,11 +50,13 @@ class Card
 			if ($one) {
 				return $one;
 			} else {
-				$state = Dever::lock($this->lock . '_' . $info['id']);
+				//$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];