master
ELF 3 years ago
parent a771388c2e
commit 2ac95fa326

@ -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) {

@ -61,10 +61,6 @@ class PackageController extends Controller
$this->error('该链接已失效');
}
if ($promote['account'] != 'kefuguanlian' && time() > strtotime('2021-05-09 12:00:00')) {
return $this->error('该链接已失效');
}
$promoteService = new PromoteService();
if (!$promoteService->checkPromoteLimitRule($promote)) {
$this->error('链接已失效');

Loading…
Cancel
Save