From ec1cb552d05cc0e2e297c3e9508647b0c830cc1b Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Wed, 25 Dec 2019 11:04:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=BD=E5=9C=B0=E9=A1=B5=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PromoteController.class.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 62bcdd0af..73c1a1b0a 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -1111,10 +1111,15 @@ class PromoteController extends ThinkController $game_id = $codeRes['game_id']; $gameInfo = M('game','tab_')->field('game_name')->where(['id'=>$game_id])->find(); $params['game_name'] = $gameInfo['game_name']; - $expires_in = $codeRes['expires_in']; + if(!empty($codeRes)) { + $expires_in = $codeRes['expires_in']; + }else { + $expires_in = -100; + } + if($expires_in == 0) { $params['expires_in'] = "永久性"; - }else { + }else if($expires_in > 0) { $params['expires_in'] = $expires_in; } $params['created_at'] = $codeRes['created_at'];