/data1/vhosts/caijing.leju.com/htdocs/framework/db/mysql.php(38)
35 protected function doQuery($sql, $param=array(), $all=false) 36 { 37 !$all && !stristr($sql, 'LIMIT') && $sql .= ' LIMIT 1'; 38 if(!$this->_statement = $this->_pdo->prepare($sql)) 39 return false; 40 41 $sOK = $param ? $this->_statement->execute($param) : $this->_statement->execute();
#0 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/framework/db/mysql.php(38):PDO->prepare("SELECT summary,type,id as news_i...") 35 protected function doQuery($sql, $param=array(), $all=false) 36 { 37 !$all && !stristr($sql, 'LIMIT') && $sql .= ' LIMIT 1'; 38 if(!$this->_statement = $this->_pdo->prepare($sql)) 39 return false; 40 41 $sOK = $param ? $this->_statement->execute($param) : $this->_statement->execute(); |
#1 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/framework/db/abstract.php(179):Leb_Db_MySql->doQuery("SELECT summary,type,id as news_i...",array(),true) 176 { 177 $this->_statement && $this->_statement->closeCursor(); 178 self::push($sql, $param); 179 $result = $this->doQuery($sql, $param, $all); 180 $this->setComplete(); 181 return $result; 182 } |
#2 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/framework/db/abstract.php(104):Leb_Db_Abstract->dbQuery("SELECT summary,type,id as news_i...",array(),true) 101 */ 102 public function queryAll($sql, array $param=array()) 103 { 104 return $this->dbQuery($sql, $param, true); 105 } 106 107 /** |
#3 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/app/news/model/news.php(879):Leb_Db_Abstract->queryAll("SELECT summary,type,id as news_i...") 876 877 $sql = "SELECT summary,type,id as news_id,title,stname,company_stock_code,cover,company_stock_name FROM `finance_clusters` WHERE `id` in(".$newsId.") AND is_deleted = 0"; 878 $companyModel= Slae::app()->model('company', 'company'); 879 $finance_data = $companyModel->getDbConnect(false)->queryAll($sql); 880 881 if (!empty($finance_data)) 882 { |
#4 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/app/news/model/news.php(149):News->getRelevantInfo("18131,18131,3717,19612,21000","undefined","1467,10009737,58,10033956,100137...","18131") 146 if($_GET['cs']=='002'){ 147 pr($return);//exit; 148 } 149 $info = $this->getRelevantInfo($return['company_id'], $return['person_id'], $return['tags_id'], $relCompanyId); 150 $bindCid = explode(',', $relCompanyId); 151 $tmpStock = array_column($info['stock'], NULL, 'company_id'); 152 //新闻取前三家公司做股票数据 |
#5 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/app/news/news.php(861):News->getNewsById("6724123702163979522") 858 } 859 860 //获取新闻内容 861 $news = $this->_newsModel->getNewsById($newsid); 862 if($_GET['dd_see'] == 'time'){ 863 $end1 = microtime(true); 864 echo '一次获取新闻:'.($end1-$star).' s'; |
#6 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/framework/dispatcher.php(280):newsController->detailAction() 277 if($method->getNumberOfParameters() > 0) 278 $this->_act_return = $response = $this->runWithParams($controller, $method, _CLI_ ? $_SERVER['argv'] : $_GET); 279 else 280 $this->_act_return = $response = $controller->$actionFunctionName(); 281 282 $afterMethod = $actionName . 'After'; 283 method_exists($controller, $afterMethod) && $controller->$afterMethod(); |
#7 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/framework/dispatcher.php(212):Leb_Dispatcher->dispatch("news","news","detail",array(),Leb_Dispatcher) 209 $appPath = $plugins->getAppName(); 210 $controllerName = $plugins->getControllerName(); 211 $actionName = $plugins->getActionName(); 212 $this->dispatch($appPath, $controllerName, $actionName, array(), $plugins); 213 return $plugins; 214 } 215 |
#8 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/framework/plugin/abstract.php(246):Leb_Dispatcher->_afterLaunch(Leb_Dispatcher) 243 244 // 3:把自己通过插件过滤出去 245 if (!$this->getEnv('disAllowRun')) { 246 $this->_afterLaunch($result); 247 } 248 249 //显示调试信息 |
#9 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/framework/plugin/broker/abstract.php(46):Leb_Plugin_Abstract->run(Leb_Request) 43 $result = null; 44 foreach ($plugins as $plugin) { 45 // 加工厂,把前面一个插件运行的结果传递给后面 46 $result = $plugin->run($result); 47 // 把前面的结果保存在运行对象里供后续使用 48 if (($result instanceof Leb_Plugin_Abstract)) { 49 $this->setRunner($result->getAlias(), $result); |
#10 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/framework/controller.php(60):Leb_Plugin_Broker_Abstract->execute(array('Leb_Request'=>array(),'Leb_Dispatcher'=>array())) 57 ); 58 59 // MVC 完毕 60 $result = parent::execute($myPlugins); 61 return $result; 62 } 63 |
#11 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/framework/plugin/abstract.php(242):Leb_Controller->execute(null) 239 } 240 241 // 2:把plugins传给本类进行加工 242 $result = $this->execute($plugins); 243 244 // 3:把自己通过插件过滤出去 245 if (!$this->getEnv('disAllowRun')) { |
#12 |
+
-
/data1/vhosts/caijing.leju.com/htdocs/index.php(31):Leb_Plugin_Abstract->run() 28error_reporting(E_ERROR&~E_NOTICE); 29//请求->路由->过滤->分发->响应 30$controller = Leb_Controller::getInstance(); 31$controller->run(); |