# 小程序PC端打开302重定向问题
# 复制替换_initialize() 前半段
# 替换路径 application/wap/controller/AuthController.php
parent::_initialize();
$pc_on_display = SystemConfigService::get('pc_on_display');
$isNextVersion = Request()->header("X-Version") === "next" || Request()->get("__token__", "");
if (!request()->isMobile() &&! $isNextVersion&& is_dir(APP_PATH . 'web') && $pc_on_display) {
return $this->redirect(Url::build('web/index/index'));
}
try {
$this->redisModel = new Redis();
} catch (\Exception $e) {
parent::serRedisPwd($e->getMessage());
}
$this->isWechat = UtilService::isWechatBrowser();
$spread_uid = Request::instance()->param('spread_uid', 0);
$NoWechantVisitWhite = $this->NoWechantVisitWhite();
$subscribe = false;
$site_url = SystemConfigService::get('site_url');
$this->subjectUrl = getUrlToDomain();
$this->site_url = $site_url;
# 替换位置
