master
elf 2 years ago
parent 3157fd4a22
commit 74a4c4f90c

File diff suppressed because it is too large Load Diff

@ -8,6 +8,7 @@ use Base\Service\ApplyService;
use Base\Service\PromoteService;
use Base\Service\PackageDownloadLogService;
use Base\Tool\MobileDetect;
use config;
/**
* 前台公共控制器
@ -21,11 +22,23 @@ class HomeController extends Controller
/* 空操作用于输出404页面 */
public function _empty()
{
$this->redirect('Index/404');
$this->redirect('Index/index');
}
protected function _initialize()
{
https://dl-3.wmtxkj.com/index.php?s=/Home/Home/landingPage/code/Y3k2Rks3SkFUeVRhOXFhVWQ2TXNwczVQWGs0S2ROWlNCanlENEZKcE5xcz0=
if (stripos($_SERVER['HTTP_HOST'], C('DOMAIN_DOWNLOAD', null, '')) === 0) {
if (
strtolower(MODULE_NAME) != 'home' &&
strtolower(CONTROLLER_NAME) != 'home' &&
strtolower(ACTION_NAME) != 'landingpage') {
header('HTTP/1.1 404 Not Found');
exit('404 找不到页面!');
}
}
/* 读取站点配置 */
$config = api('Config/lists');
C($config); //添加配置

Loading…
Cancel
Save