From cdcec317b9fa7984127aebf5080e965cc85d8c35 Mon Sep 17 00:00:00 2001 From: zayac Date: Sat, 30 Sep 2023 00:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AB=AF=E5=8F=A3=E5=8F=B7?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E6=AD=A3=E5=B8=B8=E6=9B=BF=E6=8D=A2=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zayac/changeurl/service/ChangeUrlServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zayac/changeurl/service/ChangeUrlServiceImpl.java b/src/main/java/com/zayac/changeurl/service/ChangeUrlServiceImpl.java index ac672d6..06db832 100644 --- a/src/main/java/com/zayac/changeurl/service/ChangeUrlServiceImpl.java +++ b/src/main/java/com/zayac/changeurl/service/ChangeUrlServiceImpl.java @@ -24,8 +24,8 @@ import java.util.List; @Slf4j @Service public class ChangeUrlServiceImpl implements ChangeUrlService { - private static final String KYJS = "ky.js"; - private static final String HTHJS = "template"; + private static final String KYJS = "/www/wwwroot/cdn.static.cdcseo.com/js/ky.js"; + private static final String HTHJS = "/www/wwwroot/cdn.static.cdcseo.com/js/hth.js"; @Override public Boolean change(String text) { @@ -46,7 +46,7 @@ public class ChangeUrlServiceImpl implements ChangeUrlService { "kyPc2", "kyH51", "kyH52", - "ky.js.template", + "/www/wwwroot/cdn.static.cdcseo.com/js/ky.js.template", kyTargets); //读取模板文件 String template = loadTemplate(kyTemplate.getTemplatePath()); @@ -69,7 +69,7 @@ public class ChangeUrlServiceImpl implements ChangeUrlService { HthMsgEntity hthMsg = new HthMsgEntity(arr); List hthTargets = new ArrayList<>(); hthTargets.add(HTHJS); - HthTemplateEntity hthTemplate = new HthTemplateEntity("hthApp", "hthtyApp", "hthPc", "hthH5", "hth.js.template", hthTargets); + HthTemplateEntity hthTemplate = new HthTemplateEntity("hthApp", "hthtyApp", "hthPc", "hthH5", "/www/wwwroot/cdn.static.cdcseo.com/js/hth.js.template", hthTargets); //读取模板文件 String template = loadTemplate(hthTemplate.getTemplatePath()); template = template