|
|
|
@ -30,12 +30,12 @@ class PackageController extends Controller
|
|
|
|
|
$code = I('code', '');
|
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
|
$promoteId = I('promote_id', 0);
|
|
|
|
|
// var_dump($gameId, $promoteId);die();
|
|
|
|
|
|
|
|
|
|
if ($code == '' && ($gameId == 0 || $promoteId == 0)) {
|
|
|
|
|
$this->redirect("package/downloadError", ['message' => '访问错误']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$blackList = [];
|
|
|
|
|
$blackList = M('device_bans', 'tab_')->where(['type' => 4])->getField('tag', true);
|
|
|
|
|
if (in_array($code, $blackList) || in_array('game_id/' . $gameId . '/promote_id/' . $promoteId, $blackList)) {
|
|
|
|
|
$this->redirect("package/downloadError", ['message' => '该链接已被禁']);
|
|
|
|
|
}
|
|
|
|
|