CHttpException

/home/web/iautos.cn/m_prod/20240102-100321/protected/components/Controller.php(67)

55         parent::__construct($id, $module);
56         $arr_ip = [
57             '124.42.59.92',
58         ];
59         if (in_array(Yii::app()->request->userHostAddress, $arr_ip)) {
60             echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" class="mdl-js"><head><meta name="Content-Type" content="text/html; charset=UTF-8"><title>第一车网 - 您要访问的车辆或页面不存在</title><style type="text/css"><!-- body{font-size: 14px; line-height: 24px; font-family: "宋体"}    #page {width:650px;margin:100px auto;}    #content{margin:30px;}    small{font-size: 12px;color:#999} --></style></head><body text="#000000" vlink="#0033cc" alink="#800080" link="#0033cc" bgcolor="#ffffff" topmargin="0"><div id="page">  <div id="header"><a href="http://www.iautos.cn/"><img src="http://static.iautos.cn/www/iautos/dist/image/logo-iautos-be4bd5679b.png" border="0" alt="第一车网"></a></div>  <div id="content">    <h3>很抱歉,您要访问的页面找不到啦</h3>    <ul>     <li>您可以选择:</li><ol><li>返回<a href="http://www.iautos.cn/">第一车网</a>,来查看您所要访问的页面。</li><li>直接点击热门<a href="http://so.iautos.cn/">二手车搜索</a>寻找更多适合您的车辆:              <div><small>热门二手车车型:<a href="http://so.iautos.cn/usedcar/m-449.html" target="_blank">捷达</a>    <a href="http://so.iautos.cn/usedcar/m-391.html" target="_blank">奥拓</a>    <a href="http://so.iautos.cn/usedcar/m-595.html" target="_blank">帕萨特</a>    <a href="http://so.iautos.cn/usedcar/m-448.html" target="_blank">宝来</a>    <a href="http://so.iautos.cn/usedcar/m-332.html" target="_blank">桑塔纳</a>    <a href="http://so.iautos.cn/usedcar/k-baoma.html" target="_blank">宝马</a>    <a href="http://so.iautos.cn/usedcar/m-382.html" target="_blank">雨燕</a>    <a href="http://so.iautos.cn/usedcar/m-564.html" target="_blank">雅阁</a>    <a href="http://so.iautos.cn/usedcar/m-311.html" target="_blank">爱丽舍</a>    <a href="http://so.iautos.cn/usedcar/m-226.html" target="_blank">CRV</a>    <a href="http://so.iautos.cn/usedcar/m-184.html" target="_blank">骊威</a>    <a href="http://so.iautos.cn/usedcar/m-266.html" target="_blank">高尔夫</a></small></div></li></ol></ul></div></div></body></html>';
61             Yii::app()->end();
62         }
63 
64         $earea = Yii::app()->request->getParam('area_py') ? Yii::app()->request->getParam('area_py') : (Yii::app()->request->getParam('city_py') ? Yii::app()->request->getParam('city_py') : (Yii::app()->request->getParam('province_py') ? Yii::app()->request->getParam('province_py') : ''));
65         if ('' != $earea) {
66             if (!AreaService::isPinyinArea($earea)) {
67                 throw new CHttpException(404);
68             } elseif (AreaService::isPinyinProper($earea)) {
69                 $city = AreaService::getCityByProperPinyin($earea);
70                 if (!empty($city['city_ename'])) {
71                     $url = str_replace($earea, AreaService::getDirectProvince($city['city_ename']), Yii::app()->request->getHostInfo().Yii::app()->request->getUrl());
72                     header('Location: '.$url);
73                     exit(0);
74                 } else {
75                     throw new CHttpException(404);
76                 }
77             } else {
78                 $this->guestLocation = GuestLocation::getInstance()->setLocationByPinyin($earea);
79             }

Stack Trace

#4
+
 /home/web/iautos.cn/m_prod/20240102-100321/index.php(25): CApplication->run()
20 $app = Yii::createWebApplication($config);
21 //m.car.iautos.cn
22 if ($_SERVER['HTTP_HOST'] == $app->params['baidu']['host']) {
23     $app->defaultController = 'baidu';
24 }
25 $app->run();
26 /****** 被修改 end *****/
2024-06-28 11:55:14