diff --git a/application/controllers/amp.php b/application/controllers/amp.php
index 55dd1aef..e7e5c374 100644
--- a/application/controllers/amp.php
+++ b/application/controllers/amp.php
@@ -21,15 +21,15 @@ class Amp extends CI_Controller {
}
public function edit($ic_id) {
- $this->amplib->edit($ic_id);
+ $this->amplib->edit($ic_id);
}
public function auto_create($ic_id) {
- echo $this->amplib->auto_create($ic_id);
+ echo $this->amplib->auto_create($ic_id);
}
public function edit_save() {
- echo $this->amplib->edit_save();
+ echo $this->amplib->edit_save();
}
}
diff --git a/application/third_party/htmlcompressor/controllers/index_gm.php b/application/third_party/htmlcompressor/controllers/index_gm.php
index 079432f1..c3a61ad6 100644
--- a/application/third_party/htmlcompressor/controllers/index_gm.php
+++ b/application/third_party/htmlcompressor/controllers/index_gm.php
@@ -23,7 +23,9 @@ class Index_gm extends CI_Controller
$this->debug = $this->input->post('debug');
/*$this->htmlsource = file_get_contents('aa.htm');
- $this->websitehost = 'https://data.chinarundreisen.com';*/
+ $this->websitehost = 'https://data.chinarundreisen.com';
+ $this->create_amp = 'true';
+ $this->template_name = 'gm';*/
if (empty($this->htmlsource) || empty($this->websitehost)) {
$this->output->set_status_header(500);
@@ -296,6 +298,27 @@ class Index_gm extends CI_Controller
$amp_template = str_replace('', $content_main, $amp_template);
}
+ //产品页面多做一些特殊的处理
+ foreach ($this->html_object->find('.tab-nav') as $tabnav) {
+ $amp_template = str_replace($tabnav, '', $amp_template);
+ }
+
+ //产品页面删除表单
+ foreach ($this->html_object->find('.sticky') as $sticky) {
+ $amp_template = str_replace($sticky, '@AMPFOOTER-BUTTON@', $amp_template);
+ }
+
+ foreach ($this->html_object->find('form') as $form) {
+ $amp_template = str_replace($form, '', $amp_template);
+ }
+
+ if(!empty($form)){
+ $replace_text = '