bug修复

This commit is contained in:
xiongxiaoyang 2019-12-06 14:00:33 +08:00
parent 2726917e37
commit a371f52a10
3 changed files with 13 additions and 10 deletions

View File

@ -1,6 +1,13 @@
# 小说精品屋 # 小说精品屋
#### 项目文档
[点击前往]: http://www.java2nb.com/article/5.html
#### 项目介绍 #### 项目介绍
小说精品屋是一个多平台web、安卓app、微信小程序、功能完善的小说弹幕网站包含精品小说专区、轻小说专区和漫画专区。包括小说/漫画分类、小说/漫画搜索、小说/漫画排行、完本小说/漫画、小说/漫画评分、小说/漫画在线阅读、小说/漫画书架、小说/漫画阅读记录、小说下载、小说弹幕、小说/漫画自动爬取、小说内容自动分享到微博、邮件自动推广、链接自动推送到百度搜索引擎等功能。包含电脑端、移动端、微信小程序等多个平台现已开源web端、安卓端、小程序端源码。 小说精品屋是一个多平台web、安卓app、微信小程序、功能完善的小说弹幕网站包含精品小说专区、轻小说专区和漫画专区。包括小说/漫画分类、小说/漫画搜索、小说/漫画排行、完本小说/漫画、小说/漫画评分、小说/漫画在线阅读、小说/漫画书架、小说/漫画阅读记录、小说下载、小说弹幕、小说/漫画自动爬取、小说内容自动分享到微博、邮件自动推广、链接自动推送到百度搜索引擎等功能。包含电脑端、移动端、微信小程序等多个平台现已开源web端、安卓端、小程序端源码。
#### 目录结构 #### 目录结构

View File

@ -103,6 +103,7 @@ public class BookService {
} }
out.close(); out.close();
input.close(); input.close();
book.setPicUrl(picSrc);
}catch (Exception e){ }catch (Exception e){
log.error(e.getMessage(),e); log.error(e.getMessage(),e);
} }

View File

@ -1,12 +1,11 @@
package xyz.zinglizingli.common.schedule; package xyz.zinglizingli.common.schedule;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.Resource; import org.springframework.http.HttpStatus;
import org.springframework.http.*; import org.springframework.http.ResponseEntity;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate; import org.springframework.web.client.RestTemplate;
@ -15,16 +14,13 @@ import xyz.zinglizingli.books.po.BookContent;
import xyz.zinglizingli.books.po.BookIndex; import xyz.zinglizingli.books.po.BookIndex;
import xyz.zinglizingli.books.service.BookService; import xyz.zinglizingli.books.service.BookService;
import xyz.zinglizingli.books.util.ExcutorUtils; import xyz.zinglizingli.books.util.ExcutorUtils;
import xyz.zinglizingli.books.util.UUIDUtils;
import xyz.zinglizingli.common.utils.RestTemplateUtil; import xyz.zinglizingli.common.utils.RestTemplateUtil;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
@ -40,7 +36,6 @@ public class CrawlBooksSchedule {
RestTemplate utf8RestTemplate = RestTemplateUtil.getInstance("utf-8"); RestTemplate utf8RestTemplate = RestTemplateUtil.getInstance("utf-8");
RestTemplate isoRestTemplate = RestTemplateUtil.getInstance("iso-8859-1");
@Value("${books.lowestScore}") @Value("${books.lowestScore}")
private Float lowestScore; private Float lowestScore;