|
|
|
@ -184,16 +184,6 @@ 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) {
|
|
|
|
|