mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
删除360SEO的js报错
This commit is contained in:
parent
f0d9d5bf8a
commit
3de7167727
@ -88,6 +88,12 @@
|
|||||||
<version>4.5.6</version>
|
<version>4.5.6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>commons-configuration</groupId>
|
||||||
|
<artifactId>commons-configuration</artifactId>
|
||||||
|
<version>1.10</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-mail</artifactId>
|
<artifactId>spring-boot-starter-mail</artifactId>
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
package xyz.zinglizingli.books.core.listener;
|
package xyz.zinglizingli.books.core.listener;
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.SneakyThrows;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.apache.commons.configuration.PropertiesConfiguration;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.context.ApplicationListener;
|
import org.springframework.context.ApplicationListener;
|
||||||
import org.springframework.context.event.ContextRefreshedEvent;
|
import org.springframework.context.event.ContextRefreshedEvent;
|
||||||
@ -22,8 +24,15 @@ public class StartListener implements ApplicationListener<ContextRefreshedEvent>
|
|||||||
@Value("${crawl.book.new.enabled}")
|
@Value("${crawl.book.new.enabled}")
|
||||||
private String crawlEnable;
|
private String crawlEnable;
|
||||||
|
|
||||||
|
@Value("${website.name}")
|
||||||
|
private String webSiteName;
|
||||||
|
|
||||||
|
@SneakyThrows
|
||||||
@Override
|
@Override
|
||||||
public void onApplicationEvent(ContextRefreshedEvent event) {
|
public void onApplicationEvent(ContextRefreshedEvent event) {
|
||||||
|
PropertiesConfiguration conf = new PropertiesConfiguration("messages.properties");
|
||||||
|
conf.setProperty("website.name", webSiteName);
|
||||||
|
conf.save();
|
||||||
if (!Constants.ENABLE_NEW_BOOK.equals(crawlEnable.trim())) {
|
if (!Constants.ENABLE_NEW_BOOK.equals(crawlEnable.trim())) {
|
||||||
log.info("程序启动");
|
log.info("程序启动");
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
website:
|
||||||
|
name: 笔趣阁新书门
|
||||||
|
|
||||||
server:
|
server:
|
||||||
port: 8080
|
port: 8080
|
||||||
|
|
||||||
|
@ -10,10 +10,4 @@
|
|||||||
<div style="float: right"><a href="#top"><i class="layui-icon"
|
<div style="float: right"><a href="#top"><i class="layui-icon"
|
||||||
style="margin-right:15px;font-size: 30px;color:#92B8B1 "></i></a>
|
style="margin-right:15px;font-size: 30px;color:#92B8B1 "></i></a>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
|
||||||
(function(){
|
|
||||||
var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?0f3ae8a0c8948025da914c98d5773654":"https://jspassport.ssl.qhimg.com/11.0.1.js?0f3ae8a0c8948025da914c98d5773654";
|
|
||||||
document.write('<script src="' + src + '" id="sozz"><\/script>');
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
</div>
|
</div>
|
Loading…
x
Reference in New Issue
Block a user