Showing
1 changed file
with
4 additions
and
2 deletions
@@ -568,17 +568,19 @@ public class ActivtyTemplatedService implements BaseService<ActivtyTemplatedBo> | @@ -568,17 +568,19 @@ public class ActivtyTemplatedService implements BaseService<ActivtyTemplatedBo> | ||
568 | FreshCdnUrlBO freshCdnUrlBO = new FreshCdnUrlBO(); | 568 | FreshCdnUrlBO freshCdnUrlBO = new FreshCdnUrlBO(); |
569 | if (floorList.size() <= 0 && bo.isPushCdn()){ | 569 | if (floorList.size() <= 0 && bo.isPushCdn()){ |
570 | //首次添加 调用接口预热CDN | 570 | //首次添加 调用接口预热CDN |
571 | + logger.info("ActivtyTemplatedService :: upateActivityTemplate warm_up cdn begin"); | ||
571 | freshCdnUrlBO.setRequest_type("warm_up"); | 572 | freshCdnUrlBO.setRequest_type("warm_up"); |
572 | warmAndFresh(bo, freshCdnUrlBO); | 573 | warmAndFresh(bo, freshCdnUrlBO); |
573 | }else if (floorList.size() > 0 ){ | 574 | }else if (floorList.size() > 0 ){ |
574 | //修改 调用接口刷新CDN | 575 | //修改 调用接口刷新CDN |
575 | - freshCdnUrlBO.setRequest_type("fresh"); | 576 | + logger.info("ActivtyTemplatedService :: upateActivityTemplate refresh cdn begin"); |
577 | + freshCdnUrlBO.setRequest_type("refresh"); | ||
576 | warmAndFresh(bo, freshCdnUrlBO); | 578 | warmAndFresh(bo, freshCdnUrlBO); |
577 | } | 579 | } |
578 | } | 580 | } |
579 | 581 | ||
580 | private void warmAndFresh(ActivtyTemplatedBo bo, FreshCdnUrlBO freshCdnUrlBO) { | 582 | private void warmAndFresh(ActivtyTemplatedBo bo, FreshCdnUrlBO freshCdnUrlBO) { |
581 | - logger.info("ActivtyTemplatedService :: upateActivityTemplate fresh cdn begin"); | 583 | + |
582 | String url = "https://activity.yoho.cn/feature/"+bo.getId()+".html"; | 584 | String url = "https://activity.yoho.cn/feature/"+bo.getId()+".html"; |
583 | freshCdnUrlBO.setUrl(url); | 585 | freshCdnUrlBO.setUrl(url); |
584 | logger.info("ActivtyTemplatedService :: upateActivityTemplate fresh cdn begin url is {},auth_code is {}, type is {}", url, freshCdnUrlBO.getAuth_code(), freshCdnUrlBO.getRequest_type()); | 586 | logger.info("ActivtyTemplatedService :: upateActivityTemplate fresh cdn begin url is {},auth_code is {}, type is {}", url, freshCdnUrlBO.getAuth_code(), freshCdnUrlBO.getRequest_type()); |
-
Please register or login to post a comment