https://huashibus.com
yii\base\ErrorException
yii\base\ErrorException yii\base\ErrorException: Undefined index: HTTP_USER_AGENT in /home/web/wwwroot/www.huashibus.com/components/Controller.php:60 Stack trace: #0 /home/web/wwwroot/www.huashibus.com/components/Controller.php(60): yii\base\ErrorHandler->handleError() #1 /home/web/wwwroot/www.huashibus.com/controllers/IndexController.php(48): app\components\Controller->isMobile() #2 [internal function]: app\controllers\IndexController->actionIndex() #3 /home/web/wwwroot/yii2/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array() #4 /home/web/wwwroot/yii2/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams() #5 /home/web/wwwroot/yii2/yiisoft/yii2/base/Module.php(534): yii\base\Controller->runAction() #6 /home/web/wwwroot/yii2/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction() #7 /home/web/wwwroot/yii2/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest() #8 /home/web/wwwroot/www.huashibus.com/web/index.php(11): yii\base\Application->run() #9 {main} Copied! PHP Notice – yii\base\ErrorException Undefined index: HTTP_USER_AGENT 1. in /home/web/wwwroot/www.huashibus.com/components/Controller.php at line 60 51525354555657585960616263646566676869 } /** * 判断是否是移动端 * @return bool */ public function isMobile() { $user_agent = $_SERVER['HTTP_USER_AGENT']; $mobile_agents = array('iphone', 'android', 'phone', 'mobile', 'wap', 'netfront', 'java', 'opera mobi', 'opera mini', 'ucweb', 'windows ce', 'symbian', 'series', 'webos', 'sony', 'blackberry', 'dopod', 'nokia', 'samsung', 'palmsource', 'xda', 'pieplus', 'meizu', 'midp', 'cldc', 'motorola', 'foma', 'docomo', 'up.browser', 'up.link', 'blazer', 'helio', 'hosin', 'huawei', 'novarra', 'coolpad', 'techfaith', 'alcatel', 'amoi', 'ktouch', 'nexian', 'ericsson', 'philips', 'sagem', 'wellcom', 'bunjalloo', 'maui', 'smartphone', 'iemobile', 'spice', 'bird', 'zte-', 'longcos', 'pantech', 'gionee', 'portalmmm', 'jig browser', 'hiptop', 'benq', 'haier', '^lct', '320x320', '240x320', '176x220', 'windows phone', 'cect', 'compal', 'ctl', 'lg', 'nec', 'tcl', 'daxian', 'dbtel', 'eastcom', 'konka', 'kejian', 'lenovo', 'mot', 'soutec', 'sgh', 'sed', 'capitel', 'panasonic', 'sonyericsson', 2. in /home/web/wwwroot/www.huashibus.com/components/Controller.php at line 60 – yii\base\ErrorHandler::handleError() 54555657585960616263646566 /** * 判断是否是移动端 * @return bool */ public function isMobile() { $user_agent = $_SERVER['HTTP_USER_AGENT']; $mobile_agents = array('iphone', 'android', 'phone', 'mobile', 'wap', 'netfront', 'java', 'opera mobi', 'opera mini', 'ucweb', 'windows ce', 'symbian', 'series', 'webos', 'sony', 'blackberry', 'dopod', 'nokia', 'samsung', 'palmsource', 'xda', 'pieplus', 'meizu', 'midp', 'cldc', 'motorola', 'foma', 'docomo', 'up.browser', 'up.link', 'blazer', 'helio', 'hosin', 'huawei', 'novarra', 'coolpad', 'techfaith', 'alcatel', 'amoi', 'ktouch', 'nexian', 'ericsson', 'philips', 'sagem', 'wellcom', 'bunjalloo', 'maui', 'smartphone', 'iemobile', 'spice', 'bird', 'zte-', 'longcos', 'pantech', 3. in /home/web/wwwroot/www.huashibus.com/controllers/IndexController.php at line 48 – app\components\Controller::isMobile() 42434445464748495051525354 'list' => Resource::getChannelList() ]; // 处理数据 $mainData = [$videoData, $huihuaData, $resourceData]; $isMobile = $this->isMobile(); // 素材参考|职场秘籍|绘画资讯 $articleCategory = ArticleCategory::$navCategory; unset($articleCategory[$huihuaId]); unset($articleCategory[ArticleCategory::CATEGORY_ZIXUN]); $levelData = []; 4. app\controllers\IndexController::actionIndex() 5. in /home/web/wwwroot/yii2/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array() 515253545556575859 $args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } } 6. in /home/web/wwwroot/yii2/yiisoft/yii2/base/Controller.php at line 181 – yii\base\InlineAction::runWithParams() 175176177178179180181182183184185186187 } $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */ 7. in /home/web/wwwroot/yii2/yiisoft/yii2/base/Module.php at line 534 – yii\base\Controller::runAction() 528529530531532533534535536537538539540 $parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; } 8. in /home/web/wwwroot/yii2/yiisoft/yii2/web/Application.php at line 104 – yii\base\Module::runAction() 9899100101102103104105106107108109110 $params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) { 9. in /home/web/wwwroot/yii2/yiisoft/yii2/base/Application.php at line 392 – yii\web\Application::handleRequest() 386387388389390391392393394395396397398 { try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send(); 10. in /home/web/wwwroot/www.huashibus.com/web/index.php at line 11 – yii\base\Application::run() 567891011 require __DIR__ . '/../../yii2/autoload.php'; require __DIR__ . '/../../yii2/yiisoft/yii2/Yii.php'; $config = require __DIR__ . '/../config/web.php'; (new yii\web\Application($config))->run(); $_GET = [ 'category_ids' => [ '2', '3', '4', '5', '6', '7', '8', '9', '10', 1, ], ]; 2025-03-13, 19:28:07 nginx/1.18.0 Yii Framework/2.0.42.1
en
en
1770417363
https://huashibus.com
isi arac ceysas?
Macaay abtam?