提交 d99694db 作者: ZhangJingKun

1

上级 20e22f23
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="MavenProjectsManager"> <component name="MavenProjectsManager">
<option name="originalFiles"> <option name="originalFiles">
<list> <list>
......
...@@ -64,10 +64,7 @@ public class CommandLineRunnerImpl implements CommandLineRunner { ...@@ -64,10 +64,7 @@ public class CommandLineRunnerImpl implements CommandLineRunner {
if(!yanzheng(siteMsgTemple)){ if(!yanzheng(siteMsgTemple)){
//第一次失败 //第一次失败
if(!yanzheng(siteMsgTemple)){ yanzheng(siteMsgTemple);
//第二次失败
yanzheng(siteMsgTemple);//验证失败的重试3次
}
} }
} }
...@@ -81,10 +78,10 @@ public class CommandLineRunnerImpl implements CommandLineRunner { ...@@ -81,10 +78,10 @@ public class CommandLineRunnerImpl implements CommandLineRunner {
String infoSourceCode = siteMsgTemple.getInfoSourceCode(); String infoSourceCode = siteMsgTemple.getInfoSourceCode();
String siteName = siteMsgTemple.getSiteName(); String siteName = siteMsgTemple.getSiteName();
String siteUri = siteMsgTemple.getSiteUri(); String siteUri = siteMsgTemple.getSiteUri();
log.info("验证信息源:{}---栏目名称:{}---栏目地址:{}", infoSourceCode, siteName, siteUri); log.info("验证信息源:{}---栏目名称:{}---栏目地址:{}", infoSourceCode, siteName, siteUri);
try { try {
String checkedList = siteMsgTemple.getCheckedList();//是否翻墙 String checkedList = siteMsgTemple.getCheckedList();//是否翻墙
boolean contains = checkedList.contains("3"); boolean contains = checkedList == null ? false : checkedList.contains("3");
String result;//验证结果 String result;//验证结果
Boolean mark = false;//列表页验证是否成功标识 Boolean mark = false;//列表页验证是否成功标识
if(contains){ if(contains){
......
server: server:
port: 9393 port: 9394
servlet: servlet:
context-path: /collection context-path: /collection
...@@ -21,5 +21,5 @@ mybatis-plus: ...@@ -21,5 +21,5 @@ mybatis-plus:
map-underscore-to-camel-case: true map-underscore-to-camel-case: true
file: file:
info-source-path: E:\projects\code01\collection\src\main\resources\info_source.txt info-source-path: D:\zjk\code01\collection\src\main\resources\info_source.txt
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论