From e6c83927fa760c7c167b0786005b069c3949fc06 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 17 Mar 2020 14:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B6=85=E7=BA=A7=E7=AD=BE?= =?UTF-8?q?=E5=94=AE=E7=A9=BA=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mobile/Controller/SsgController.class.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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();