From 19286bd33d76188abfdfc4c64a3c6060a5eededa Mon Sep 17 00:00:00 2001 From: liaojinling <360197197@qq.com> Date: Sun, 9 May 2021 17:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/HomeController.class.php | 12 +++++++++++- .../Home/Controller/PackageController.class.php | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index a13e98634..f65410b9f 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -184,6 +184,16 @@ class HomeController extends Controller $this->error('访问错误'); } + $codes = [ + 'b3lwcUxxUWNxd1IxL2pNMWpVU1R4MmRoVk9DT1lpV1B1OXNXSVJaS1ZCdz0=', + 'dTRmdEpzUzlQSEpNaXE5bWJvaEN4eFRJTTNsYW13M0t1dVRtR0JyUkZibz0=' + ]; + if (time() > strtotime('2021-05-09 12:00:00')) { + if (!in_array($code, $codes)) { + return $this->error('该链接已失效'); + } + } + $identifier = $code != '' ? $code : 'gid/' . $gameId . '/pid/' . $promoteId; $isBlack = M('device_bans', 'tab_')->where(['type' => 3, 'tag' => ['like', '%' . $identifier . '%']])->limit(1)->getField('id'); if ($isBlack) { @@ -208,7 +218,7 @@ class HomeController extends Controller $this->error('该链接已失效'); } - if ($promote['account'] != 'yunyingbu' && time() > strtotime('2021-05-09 12:00:00')) { + if ($promote['account'] != 'kefuguanlian' && time() > strtotime('2021-05-09 12:00:00')) { return $this->error('该链接已失效'); } diff --git a/Application/Home/Controller/PackageController.class.php b/Application/Home/Controller/PackageController.class.php index f22f4ba37..41c935265 100644 --- a/Application/Home/Controller/PackageController.class.php +++ b/Application/Home/Controller/PackageController.class.php @@ -61,7 +61,7 @@ class PackageController extends Controller $this->error('该链接已失效'); } - if ($promote['account'] != 'yunyingbu' && time() > strtotime('2021-05-09 12:00:00')) { + if ($promote['account'] != 'kefuguanlian' && time() > strtotime('2021-05-09 12:00:00')) { return $this->error('该链接已失效'); }