hotfix/paypal-note
LMR 3 years ago
parent b61fef96e1
commit f4b4b4ba0b

@ -2087,6 +2087,7 @@ class Information extends CI_Controller
case 'ru':
case 'jp':
$information = $this->Information_model->Detail($url);
$meta_pc_amp = get_meta($information->ic_id, 'AMP_BODY_PC_STATUS');
if ($delete_only) {
//只删除操作在url修改和不发布信息的时候使用
$url = $this->config->item('site_url') . '/index.php/welcome/update_cache/delete_only?static_html_url=' . $url;
@ -2094,7 +2095,7 @@ class Information extends CI_Controller
$tmp = $url;
//判断是否是更新信息
// 产品页面不能生成静态页面,比如/beijing/hotel/只是为了在导航显示一个链接,如果生成了静态页面,网前只会显示一个空白页面了
if (!empty($information->ic_content)) {
if (!empty($information->ic_content) || $meta_pc_amp == 'yes') {
$url = $this->config->item('site_url') . '/index.php/information/detail/?static_html_url=' . $url . '&flag=empty_false';
} else {
//$url = $this->config->item('site_url') . '/index.php/welcome/update_cache/?static_html_url=' . //$url;

Loading…
Cancel
Save