MODPATH/database/classes/kohana/database/pdo.php [ 185 ]
180 // This benchmark is worthless
181 Profiler::delete($benchmark);
182 }
183
184 // Convert the exception in a database exception
185 throw new Database_Exception(':error [ :query ]',
186 array(
187 ':error' => $e->getMessage(),
188 ':query' => $sql
189 ),
190 $e->getCode());
-
MODPATH/database/classes/kohana/database/query.php [ 275 ] » Kohana_Database_PDO->query(arguments)
0
integer 1
1
string(205) "SELECT MIN(`adultprice`) as price FROM sline_line_suit_price WHERE `lineid`=87 and supplier_channel_id=1 and `adultprice`>0 and …"
2
bool FALSE
3
array(0)
270 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 271 } 272 } 273 274 // Execute the query 275 $result = $db->query($this->_type, $sql, $as_object, $object_params); 276 277 if (isset($cache_key) AND $this->_lifetime > 0) 278 { 279 // Cache the result array 280 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
DOCROOT/plugins/line/classes/model/line.php [ 124 ] » Kohana_Database_Query->execute()
119 $sql = 'SELECT MIN(`'.$price_field.'`) as price FROM sline_line_suit_price WHERE `lineid`=' . $lineid . ' and supplier_channel_id='.$channel_id.' and `'.$price_field.'`>0 and day>=' . $time . ' and (`number` >0 or `number`=-1) and find_in_set('.$cfg_line_minprice_rule.',propgroup)' . $where; 120 121 122 } 123 124 $rs = DB::query(1, $sql)->execute()->current(); 125 if (!$rs['price']) 126 { 127 $people_group = Model_Sysconfig::get_people_group(null,1); 128 129 $min_price = 0;
-
DOCROOT/plugins/line/classes/controller/pc/line.php [ 586 ] » Model_Line::get_minprice(arguments)
0
string(2) "87"
1
array(1) ( "info" => array(72) ( "id" => string(2) "87" "webid" => string(1) "0" "aid" => string(2) "87" "title" => string(110) "【凡尔赛宫1日】巴黎出发,每天发团,世界五大宫殿之一,免排队门票+语音导览器" "seotitle" => string(0) "" "startcity" => string(2) "75" "overcity" => NULL "linedate" => NULL "price" => string(4) "0.00" "price_date" => string(10) "1710777600" "lineday" => string(1) "1" "linenight" => string(1) "0" "litpic" => string(55) "/uploads/2019/0318/3decb005e021f3df0707ee00345634bf.jpg" "product_video" => NULL "linedoc" => string(2) "N;" "tagword" => string(0) "" "keyword" => string(0) "" "jieshao" => string(4175) "<a href="" target="_blank"><p></a><a href target="_blank"><p><br/></p></a><a href target="_blank"><p><br/></p></a><a href target …" "biaozhun" => string(4037) "<p><span style="font-size: 14px;">团员义务</span></p><p><span style="font-size: 14px;">1.团员应遵守出团座位安排及酒店入住安排,不得私自调换座位或酒店房间,如遇特殊情况,请通知 …" "beizu" => string(1962) "<p style="margin-top: 0px;margin-bottom: 0px;padding: 0px;font-family: 微软雅黑, Helvetica, Arial, sans-serif;white-space: normal;ba …" "payment" => string(4786) "<p microsoft="" max-width:="" white-space:="" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; outline: no …" "feeinclude" => string(643) "<p><span style="font-size: 14px;">团费包括:</span></p><p><span style="font-size: 14px;">全程高档空调观光大巴来回</span></p><p><span style="font- …" "features" => string(0) "" "description" => string(0) "" "shownum" => string(4) "2766" "seatleft" => NULL "storeprice" => string(1) "0" "transport" => string(6) "大巴" "linebefore" => string(1) "2" "addtime" => string(10) "1552920494" "modtime" => string(10) "1580380517" "reserved1" => string(823) "<p><span style="color: rgb(51, 51, 51); font-family: SimSun; font-size: 14px; background-color: rgb(255, 255, 255);">从巴黎卢浮宫附近出发, …" "reserved2" => string(0) "" "reserved3" => string(0) "" "color" => string(0) "" "childrule" => string(0) "" "kindlist" => string(8) "36,96,97" "themelist" => NULL "attrid" => string(14) "2,7,3,27,15,17" "satisfyscore" => string(3) "100" "bookcount" => string(1) "0" "ishidden" => string(1) "0" "isstyle" => string(1) "1" "sellpoint" => string(176) "PC巴黎,凡尔赛:从巴黎卢浮宫附近出发,乘坐高档空调观光大巴;包括门票!每周一每周二每周三每周四每周四每周五每周六每周日" "piclist" => array(3) ( 0 => array(2) ( 0 => string(55) "/uploads/2019/0318/3decb005e021f3df0707ee00345634bf.jpg" 1 => string(22) "500-339-14545947741309" ) 1 => array(2) ( 0 => string(55) "/uploads/2019/0318/a46b86baf54f5297572f1995636f67d5.jpg" 1 => string(22) "500-339-14545947744308" ) 2 => array(2) ( 0 => string(55) "/uploads/2019/0318/98b21596e241e4756e34713404415330.jpg" 1 => string(21) "500-33814545947741827" ) ) "distance" => NULL "zijiaseat" => NULL "zijiaprice" => NULL "zijiacar" => NULL "showrepast" => string(1) "0" "paytype" => string(1) "1" "templet" => string(13) "line_show.htm" "iconlist" => string(0) "" "supplierlist" => string(2) "12" "insuranceids" => string(0) "" "sourcelineid" => NULL "islinebefore" => string(1) "0" "recommendnum" => string(1) "0" "adminid" => string(1) "7" "finaldestid" => string(2) "97" "jifenbook_id" => string(1) "0" "jifentprice_id" => string(1) "0" "redirect_url" => string(0) "" "status" => string(1) "3" "refuse_msg" => string(0) "" "showhotel" => string(1) "0" "showtran" => string(1) "1" "contractid" => string(1) "4" "wap_templet" => string(0) "" "together_ids" => string(0) "" "together_time" => string(1) "0" "attrlist" => array(3) ( 0 => array(1) ( "attrname" => string(9) "大巴团" ) 1 => array(1) ( "attrname" => string(12) "一日往返" ) 2 => array(1) ( "attrname" => string(6) "巴黎" ) ) ) )
581 //提前预订 582 $beforBook = array( 583 'islinebefore' => $info['islinebefore'], 584 'linebefore' => $info['linebefore'] 585 ); 586 $info['price'] = Model_Line::get_minprice($info['id'], array('info' => $info)); 587 //出发城市 588 $info['startcity'] = Model_Startplace::start_city($info['startcity']); 589 //点评数 590 $info['commentnum'] = Model_Comment::get_comment_num($info['id'], 1); 591 //销售数量
-
{PHP internal call} » Controller_Pc_Line->action_show()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Pc_Line(9)
{ private _typeid => integer 1 private _cache_key => string(41) "https://www.yoyoer.com/lines/show_87.html" private channelname => string(9) "大巴游" protected cmsurl => string(1) "/" protected platform_no => integer 5 public _data => array(4) ( "cmsurl" => string(1) "/" "webname" => string(12) "游游旅行" "typeid" => integer 1 "channelname" => string(9) "大巴游" ) public params => array(1) ( "" => integer 0 ) public request => object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(27) "lines(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(12) "(print|show)" ) protected _defaults => array(3) ( "directory" => string(2) "pc" "controller" => string(4) "line" "action" => string(5) "index" ) protected _route_regex => string(60) "#^lines(?:/(?P<action>(print|show))_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(4) "line" protected _action => string(4) "show" protected _uri => string(18) "lines/show_87.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(2) "87" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }111 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 112 array(':uri' => $request->uri())); 113 } 114 115 $method = $class->getMethod('action_'.$action); 116 $method->invoke($controller); 117 118 // Execute the "after action" method 119 $class->getMethod('after')->invoke($controller); 120 } 121 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(27) "lines(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(12) "(print|show)" ) protected _defaults => array(3) ( "directory" => string(2) "pc" "controller" => string(4) "line" "action" => string(5) "index" ) protected _route_regex => string(60) "#^lines(?:/(?P<action>(print|show))_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(4) "line" protected _action => string(4) "show" protected _uri => string(18) "lines/show_87.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(2) "87" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1160 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(27) "lines(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(12) "(print|show)" ) protected _defaults => array(3) ( "directory" => string(2) "pc" "controller" => string(4) "line" "action" => string(5) "index" ) protected _route_regex => string(60) "#^lines(?:/(?P<action>(print|show))_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(4) "line" protected _action => string(4) "show" protected _uri => string(18) "lines/show_87.html" protected _external => bool FALSE protected _params => array(1) ( "aid" => string(2) "87" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}1155 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1156 ':uri' => $this->_uri, 1157 )); 1158 } 1159 1160 return $this->_client->execute($this); 1161 } 1162 1163 /** 1164 * Returns whether this request is the initial request Kohana received. 1165 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 129 ] » Kohana_Request->execute()
124 require APPPATH.'bootstrap'.EXT; 125 126 127 if ( ! defined('SUPPRESS_REQUEST')) { 128 echo Request::factory() 129 ->execute() 130 ->send_headers(true) 131 ->body(); 132 }