Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit b2642ba

Browse files
committed
修复BUG #18
1 parent 4a1654b commit b2642ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

action/config/application.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"formvalidation": true,
44
"enablepreview": false,
55
"ocr": "d4_ocr",
6-
"testmode": true
6+
"testmode": false
77
}

src/main/java/top/gcszhn/autocard/service/AutoCardService.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import com.alibaba.fastjson.JSONObject;
2828

2929
import lombok.Getter;
30-
import org.springframework.util.StringUtils;
3130
import top.gcszhn.autocard.AppConfig;
3231
import top.gcszhn.autocard.utils.DigestUtils;
3332
import top.gcszhn.autocard.utils.HttpDataPair;
@@ -147,7 +146,7 @@ public boolean formValidation(String html) {
147146
return false;
148147
}
149148
public boolean isSubmited(String page) {
150-
return StringUtils.hasText("hasFlag: '1'");
149+
return page.contains("hasFlag: '1'");
151150
}
152151
/**
153152
* 用于提取已有提交信息

0 commit comments

Comments
 (0)