|
|
@ -8,6 +8,7 @@ use Base\Service\ApplyService;
|
|
|
|
use Base\Service\PromoteService;
|
|
|
|
use Base\Service\PromoteService;
|
|
|
|
use Base\Service\PackageDownloadLogService;
|
|
|
|
use Base\Service\PackageDownloadLogService;
|
|
|
|
use Base\Tool\MobileDetect;
|
|
|
|
use Base\Tool\MobileDetect;
|
|
|
|
|
|
|
|
use config;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 前台公共控制器
|
|
|
|
* 前台公共控制器
|
|
|
@ -21,11 +22,23 @@ class HomeController extends Controller
|
|
|
|
/* 空操作,用于输出404页面 */
|
|
|
|
/* 空操作,用于输出404页面 */
|
|
|
|
public function _empty()
|
|
|
|
public function _empty()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->redirect('Index/404');
|
|
|
|
$this->redirect('Index/index');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected function _initialize()
|
|
|
|
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');
|
|
|
|
$config = api('Config/lists');
|
|
|
|
C($config); //添加配置
|
|
|
|
C($config); //添加配置
|
|
|
|