// 初始化
public function initialize()
{
if (request()->isMobile()) {
// View::config(['view_dir_name' => 'view/mobile']);
$this->is_mobile = 1; // 手机端
// 判断是否是微信浏览器
}
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false) {
$this->is_mobile = 2;
}
View::assign('is_mobile', $this->is_mobile);
View::assign('kwd', '');
//左侧菜单
$allcategory = cache('allCategory');
$tree = new TreeService($allcategory);
PHPSESSID | de08770fafdefe287791a9970c677861 |
__token__ | d093f4c9a58050344e5922f280937621 |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | / |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REMOTE_PORT | 42414 |
SCRIPT_FILENAME | /www/wwwroot/rainfe.chichenit.cn/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/rainfe.chichenit.cn/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/rainfe.chichenit.cn/public |
REMOTE_ADDR | 104.140.201.70 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.17.214.243 |
SERVER_NAME | www.rainfe.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.rainfe.com Port 80 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
HTTP_COOKIE | PHPSESSID=de08770fafdefe287791a9970c677861 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.rainfe.com |
proxy-nokeepalive | 1 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1732113667.6246 |
REQUEST_TIME | 1732113667 |