From 887e7c891e9c264f7879473ac554fabfbaf193d7 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 17 Mar 2020 15:03:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B6=85=E7=BA=A7=E7=AD=BE=E5=94=AE?= =?UTF-8?q?=E7=A9=BA=E6=8F=90=E9=86=922?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Mobile/Controller/SsgController.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index 559f5d764..4c9a517b4 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -684,6 +684,8 @@ class SsgController extends BaseController { } }else{ $this->assign("error","超级签已售罄~"); + $this->display('blank'); + exit(); } $i ++; } From a6a177ca0ed7d5183e27a30786623ac73c8a0587 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 17 Mar 2020 15:23:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B6=85=E7=BA=A7?= =?UTF-8?q?=E7=AD=BEcode=E8=8E=B7=E5=8F=96=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Mobile/Controller/SsgController.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Application/Mobile/Controller/SsgController.class.php b/Application/Mobile/Controller/SsgController.class.php index 4c9a517b4..bc0453e85 100644 --- a/Application/Mobile/Controller/SsgController.class.php +++ b/Application/Mobile/Controller/SsgController.class.php @@ -672,8 +672,14 @@ class SsgController extends BaseController { // 获取授权码 $list = $ipa365->ticketList(array( 'token' => $token, + 'status'=>0,//未使用是0 'limit' => $i, )); // @todo: 并发授权码已分配的情况 + if($list['errno'] != 0){ + $this->assign("error","超级签获取失败~{$list['errmsg']}"); + $this->display('blank'); + exit(); + } $code = $list['data']['list'][$i-1]['code']; if($code){ $codeExists = M('game_supersign', 'tab_')->field('id')->where(array(