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