更新开始时间3

This commit is contained in:
xuelijun
2026-01-23 17:49:47 +08:00
parent 64ba2b1ead
commit 5eac38c0c1
4 changed files with 8 additions and 1 deletions

BIN
bocai.db

Binary file not shown.

View File

@@ -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")

View File

@@ -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)) {

View File

@@ -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");