|
|
@ -675,15 +675,18 @@ class SsgController extends BaseController {
|
|
|
|
'limit' => $i,
|
|
|
|
'limit' => $i,
|
|
|
|
)); // @todo: 并发授权码已分配的情况
|
|
|
|
)); // @todo: 并发授权码已分配的情况
|
|
|
|
$code = $list['data']['list'][$i-1]['code'];
|
|
|
|
$code = $list['data']['list'][$i-1]['code'];
|
|
|
|
|
|
|
|
if($code){
|
|
|
|
$codeExists = M('game_supersign', 'tab_')->field('id')->where(array(
|
|
|
|
$codeExists = M('game_supersign', 'tab_')->field('id')->where(array(
|
|
|
|
'ticket' => $code,
|
|
|
|
'ticket' => $code,
|
|
|
|
))->find();
|
|
|
|
))->find();
|
|
|
|
if (!$codeExists) {
|
|
|
|
if (!$codeExists) {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$this->assign("error","超级签已售罄~");
|
|
|
|
|
|
|
|
}
|
|
|
|
$i ++;
|
|
|
|
$i ++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$game = M('game', 'tab_')->where(array(
|
|
|
|
$game = M('game', 'tab_')->where(array(
|
|
|
|
'id' => $gameId,
|
|
|
|
'id' => $gameId,
|
|
|
|
))->find();
|
|
|
|
))->find();
|
|
|
|