|
|
|
@ -66,7 +66,11 @@ class Amplib {
|
|
|
|
|
$post_data = array('websitehost' => $websitehost, 'template_name' => $site_code, 'create_amp' => 'true', 'htmlsource' => $html_source);
|
|
|
|
|
//德语站点走另外一个控制器,其他站点还是走原来的流程
|
|
|
|
|
if($site_code == 'gm'){
|
|
|
|
|
return GET_HTTP(site_url('/apps/htmlcompressor/index_gm/choose_way'), $post_data, 'POST');
|
|
|
|
|
if($data['information']->ic_url == '/massgeschneiderte-china-reisen/'){
|
|
|
|
|
return json_encode(array('result' => 'no', 'data' => '德语TM表单不转换'));
|
|
|
|
|
}else{
|
|
|
|
|
return GET_HTTP(site_url('/apps/htmlcompressor/index_gm/choose_way'), $post_data, 'POST');
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
return GET_HTTP(site_url('/apps/htmlcompressor/index/optimize'), $post_data, 'POST');
|
|
|
|
|
}
|
|
|
|
|