From e6e18b3ade70375f311c882c1d0fbcae70c34a36 Mon Sep 17 00:00:00 2001 From: cyc Date: Thu, 20 Jun 2019 09:39:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=B7=E8=AF=ADAMP?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E3=80=82=E6=B7=BB=E5=8A=A0AH=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=B9=B3=E5=8F=B0=E9=A1=B5=E9=9D=A2=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config/config.php | 6 ++++-- .../third_party/htmlcompressor/views/amp-template/gm.php | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/application/config/config.php b/application/config/config.php index b136d9e7..fa2b0f4e 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -920,10 +920,12 @@ $config['InfoType_ct'] = array( '一日游线路详细' => 'c_day_tour' ); -//ct站点用到了 +//AH站点用到了 $config['InfoType_ah'] = array( '国家信息' => 'country_info', - '区域信息' => 'area_info' + '区域信息' => 'area_info', + '国家信息列表页' => 'country_info_list', + '区域信息列表页' => 'area_info_list' ); //可选模板 diff --git a/application/third_party/htmlcompressor/views/amp-template/gm.php b/application/third_party/htmlcompressor/views/amp-template/gm.php index a0ba647a..cf611876 100644 --- a/application/third_party/htmlcompressor/views/amp-template/gm.php +++ b/application/third_party/htmlcompressor/views/amp-template/gm.php @@ -38,7 +38,12 @@ @AMP-COMMON-FOOTER@ - + + Unsere Webseite verwendet Cookies um die Webseite st?ndig zu verbessern. Wenn Sie auf unserer Seite weitersurfen, stimmen Sie der Datenschutzerkl?rung zu. + Ich stimme zu. +
From 944e6a7f4057485f173722f95671e642c25068ac Mon Sep 17 00:00:00 2001 From: cyc Date: Thu, 20 Jun 2019 17:01:59 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=90=BA=E7=A8=8B?= =?UTF-8?q?=E6=8E=A5=E6=94=B6=E5=9B=9E=E8=B0=83=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ctrip/callback.php | 83 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 ctrip/callback.php diff --git a/ctrip/callback.php b/ctrip/callback.php new file mode 100644 index 00000000..214174b5 --- /dev/null +++ b/ctrip/callback.php @@ -0,0 +1,83 @@ +'; +$BackXml .= ""; +$BackXml .= ' + web.order.requestRefund + tieyou + 2016-05-26 16:26:47 + 263A1E3FDCEBA0AEE61E49952E34C27D + + + + elonge20160526261753244 + 882c5548-b672-4484 + 882c5548-b672-4484 + + + 5.50 + Test + T + +';*/ + +$BackArr = simplexml_load_string($BackXml); +$ServiceName = $BackArr->Authentication->ServiceName; +if($ServiceName == 'web.order.returnTicketNotice'){ + $OrderNumber = $BackArr->TrainOrderService->OrderNumber; +}else{ + $OrderNumber = $BackArr->TrainOrderService->OrderInfo->OrderNumber; +} + +$responsexml = ' + + + '.$ServiceName.' + '.date('Y-m-d H:i:s').' + '.$OrderNumber.' + SUCCESS + + null + + + +'; + +echo $responsexml; + +$BackJson = json_encode($BackArr); + +$Url = 'http://www.mycht.cn/info.php/apps/trainsystem/callback/ctripcallback'; + +//发送数据 +GetPost_http($Url,$BackJson,'POST'); + +?> \ No newline at end of file