|
|
|
@ -50,7 +50,7 @@ class Index extends CI_Controller
|
|
|
|
|
foreach ($orders as $item) {
|
|
|
|
|
$site_code = strtolower($item->COLI_WebCode);
|
|
|
|
|
if (in_array($site_code, array('gm', 'gmhw', 'jp', 'jphw', 'ru', 'ruhw', 'it', 'ithw', 'vac', 'vachw', 'vc', 'vchw'))) {
|
|
|
|
|
// $this->orders_view_path_int($item->COLI_SN, $site_code, $item->COLI_SenderIP);
|
|
|
|
|
$this->orders_view_path_int($item->COLI_SN, $site_code, $item->COLI_SenderIP, $item->COLI_OrderDetailText);
|
|
|
|
|
} else {
|
|
|
|
|
$this->orders_view_path($item->COLI_SN, $site_code, $item->COLI_SenderIP);
|
|
|
|
|
}
|
|
|
|
@ -127,14 +127,41 @@ class Index extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//定时抓取订单日志 - 国际站
|
|
|
|
|
public function orders_view_path_int($COLI_SN, $sitecode = 'cht', $ip, $offset = 0)
|
|
|
|
|
public function orders_view_path_int($COLI_SN, $sitecode = 'cht', $ip, $offset = 0, $order_text)
|
|
|
|
|
{
|
|
|
|
|
// 测试数据 - 2
|
|
|
|
|
// $COLI_SN = 1004250;
|
|
|
|
|
// $sitecode = 'gmhw';
|
|
|
|
|
// $ip = '2a00:6020:41c7:3900:20c1:3c5c:c854:7095';
|
|
|
|
|
$client_id = 'test-clientid-xxoo';
|
|
|
|
|
// $offset = 0;
|
|
|
|
|
//$COLI_SN = 1004250;
|
|
|
|
|
//$sitecode = 'gmhw';
|
|
|
|
|
//$ip = '2a00:6020:41c7:3900:20c1:3c5c:c854:7095';
|
|
|
|
|
//$offset = 0;
|
|
|
|
|
//$order_text = 'Gaid-> GA1.2.1747854879.1682254516 <-Gaid
|
|
|
|
|
//YandexId-> 1682254516819066352 <-YandexId
|
|
|
|
|
//clino :g-de-in-2
|
|
|
|
|
//startdate :2023-08-06
|
|
|
|
|
//adultnum :4
|
|
|
|
|
//Reiseroute Klasse :4 sterne hotel
|
|
|
|
|
//tourname :Rundreisen Nordindien 3 Wochen
|
|
|
|
|
//tages :21
|
|
|
|
|
//Reiseroutennummer :14083
|
|
|
|
|
//Geschlecht :
|
|
|
|
|
//Name :Firestone
|
|
|
|
|
//nationality :?sterreich
|
|
|
|
|
//E-Mail :AnaAnaki@hotmail.com
|
|
|
|
|
//Telefon :+4369918253609
|
|
|
|
|
//来源页面 :https://www.chinarundreisen.com/indien/top-indien-reiseziele/
|
|
|
|
|
//
|
|
|
|
|
//from:android
|
|
|
|
|
//Mozilla/5.0 (Linux; Android 9; SM-G950F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36 X-Middleton/1';
|
|
|
|
|
|
|
|
|
|
// 匹配clientId的正则表达式
|
|
|
|
|
$pattern = "/YandexId->(.+?)<-YandexId/";
|
|
|
|
|
// 检查文本是否匹配正则表达式
|
|
|
|
|
if (preg_match($pattern, $order_text, $matches)) {
|
|
|
|
|
$client_id = trim($matches[1]);
|
|
|
|
|
} else {
|
|
|
|
|
$client_id = "-- Match not found --";
|
|
|
|
|
}
|
|
|
|
|
// echo $client_id;
|
|
|
|
|
|
|
|
|
|
$query_string = "
|
|
|
|
|
* | select time_local,http_referer,request_uri,http_user_agent,http_x_forwarded_for
|
|
|
|
|