Skip to content

Commit

Permalink
2.4.1发布,修复部分bug
Browse files Browse the repository at this point in the history
  • Loading branch information
x201206030 committed Jun 22, 2020
1 parent 6688d5b commit ef36527
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![index]( http://chuantu.xyz/t6/737/1591001390x992248267.png )](https://cloud.tencent.com/act/cps/redirect?redirect=1052&cps_key=736e609d66e0ac4e57813316cec6fd0b&from=console)
[![index]( https://s1.ax1x.com/2020/06/22/NG6N2n.png )](https://cloud.tencent.com/act/cps/redirect?redirect=1052&cps_key=736e609d66e0ac4e57813316cec6fd0b&from=console)

# 小说精品屋

Expand Down Expand Up @@ -247,4 +247,4 @@ novel-admin :平台后台管理系统源码(独立项目,按需安装)

精品小说屋所有相关项目均已在开源中国公开,感兴趣的可进入[开源中国](https://www.oschina.net/p/fiction_house)按关键字`精品小说屋`搜索。

[![index]( http://chuantu.xyz/t6/737/1591001390x992248267.png )](https://www.aliyun.com/minisite/goods?userCode=uf4nasee )
[![index]( https://s1.ax1x.com/2020/06/22/NG6N2n.png)](https://www.aliyun.com/minisite/goods?userCode=uf4nasee )
2 changes: 1 addition & 1 deletion novel-front/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>xyz.zinglizingli</groupId>
<artifactId>novel-front</artifactId>
<version>2.4.0.beta</version>
<version>2.4.1.beta</version>
<name>novel-front</name>
<description>小说精品楼-前台web网站</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public void contextInitialized(ServletContextEvent servletContextEvent) {

log.info("updateBooks执行中。。。。。。。。。。。。");
crawlSource.update();
Thread.sleep(2000);
} catch (Exception e) {
log.error(e.getMessage(), e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,9 @@ public void addBookParseLog(String bookUrl, String bookName, Float score, Byte p
*/
public List<BookParseLog> queryBookParseLogs() {
List<BookParseLog> logs = bookParseLogMapper.queryBookParseLogs();
SpringUtil.getBean(BookService.class).addBookUpdateCount(logs);
if(logs.size()>0) {
SpringUtil.getBean(BookService.class).addBookUpdateCount(logs);
}
return logs;
}

Expand Down
4 changes: 2 additions & 2 deletions novel-front/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/books?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root
password:
password: test123456
# url: jdbc:mysql://127.0.0.1:3306/books?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
# username: root
# password: test123456
Expand Down Expand Up @@ -89,7 +89,7 @@ books:
#爬取的网站名称类型 1:笔趣岛 ,2:笔趣塔,3:顶点小说 ,4:百书斋 更多网站解析中,敬请期待
crawl:
website:
type: 4
type: 3



Expand Down

0 comments on commit ef36527

Please sign in to comment.