更新开始时间3
This commit is contained in:
@@ -43,6 +43,10 @@ public class LoginInfoResult {
|
||||
//1是开0是关
|
||||
@Column(name = "on_off")
|
||||
private Integer onOff;
|
||||
|
||||
//金额
|
||||
@Column(name = "amount")
|
||||
private Integer amount;
|
||||
|
||||
//登录cookie
|
||||
@Column(name = "cookie")
|
||||
|
||||
@@ -181,6 +181,9 @@ public class LoginServiceImpl implements LoginService {
|
||||
if (loginInfoResult.getLoseNum() != null) {
|
||||
dbUser.setLoseNum(loginInfoResult.getLoseNum());
|
||||
}
|
||||
if (loginInfoResult.getAmount() != null) {
|
||||
dbUser.setAmount(loginInfoResult.getAmount());
|
||||
}
|
||||
if (loginInfoResult.getOnOff() != null) {
|
||||
dbUser.setOnOff(loginInfoResult.getOnOff());
|
||||
if (loginInfoResult.getOnOff().equals(1)) {
|
||||
|
||||
@@ -248,7 +248,7 @@ public class LotteryWebMagicCrawler implements PageProcessor {
|
||||
objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
|
||||
|
||||
// 定义输出目录
|
||||
String directoryPath = "output/json"; // 项目根目录下的 output/json 文件夹
|
||||
String directoryPath = "PyModel/data_test_dir"; // 项目根目录下的 output/json 文件夹
|
||||
|
||||
// 使用年月日作为文件名(格式:result_yyyyMMdd.json)
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
|
||||
|
||||
Reference in New Issue
Block a user