master
liaojinling 4 years ago
parent ee4517adf2
commit 19286bd33d

@ -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('该链接已失效');
}

@ -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('该链接已失效');
}

Loading…
Cancel
Save