diff --git a/application/models/information_model.php b/application/models/information_model.php index db247bbc..0b0ebade 100644 --- a/application/models/information_model.php +++ b/application/models/information_model.php @@ -168,6 +168,8 @@ class Information_model extends CI_Model { } else { $sql.=" $filed "; } + //添加查询AMP发布状态 + $sql.=",isnull((select top 1 CONVERT(varchar, im_value) from infoMetas where im_ic_id=ic_id and im_key='AMP_STATUS' and CONVERT(varchar, im_value) = '1'),0) as amp_status "; $sql.="FROM infoStructures is1 \n" . " INNER JOIN infoContents ic ON ic.ic_id = is1.is_ic_id \n" . " AND ic.ic_sitecode = is1.is_sitecode \n" diff --git a/application/views/bootstrap/welcome.php b/application/views/bootstrap/welcome.php index 05843494..d2bca395 100644 --- a/application/views/bootstrap/welcome.php +++ b/application/views/bootstrap/welcome.php @@ -42,7 +42,7 @@
  • 订单邮件管理
  • 信息分享平台
  • 全站静态化更新
  • - +
  • 全站AMP更新
  • diff --git a/application/views/bootstrap3/refresh_amp_urls.php b/application/views/bootstrap3/refresh_amp_urls.php index c504abd0..dcc5b6ee 100644 --- a/application/views/bootstrap3/refresh_amp_urls.php +++ b/application/views/bootstrap3/refresh_amp_urls.php @@ -77,7 +77,8 @@ # - URL + 发布 + URL 更新进度 @@ -89,8 +90,9 @@ $i++; ?> - - ic_url; ?> + + amp_status==='1'){echo ''; } ?> + ic_url; ?>