CHttpException

/home/web/iautos.cn/m_prod/20240102-100321/protected/controllers/SoController.php(48)

36         } elseif (!empty($soService->so_show['area_py']) && 'quanguo' == $soService->so_show['area_py']) {
37             throw new CHttpException(404);
38         } elseif (empty($soService->so_show['area_py'])) {
39             $this->guestLocation = GuestLocation::getInstance()->setLocationByPinyin('quanguo');
40             $this->guestLocation->setLocationCookie();
41         }
42 
43         if (isset($param['modeltype'])) {
44             unset($param['modeltype']);
45         }
46         $so_data = $soService->getData($soService->so);
47         if (!empty($so_data['error'])) {
48             throw new CHttpException(404);
49         }
50         $data['seo_recommend_cars'] = $this->_getSeoRecommendCar($soService, $so_data['totalNumber']);
51         //当关键字搜索有结果时,将关键字存入cookie;搜索弹出页在“最近搜索”显示。改为在js中实现。此处将关键词传递到前端。
52         if (!empty($_GET['kw']) && $so_data['totalNumber'] > 0) {
53             $data['search_keyword'] = $_GET['kw'];
54         }
55 
56         $show_data = [];
57         if (!empty($so_data['query'])) {
58             foreach ($so_data['query'] as $info) {
59                 $show_data[$info['id']] = $info;
60             }

Stack Trace

#7
+
 /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:29