fix:调整了无头浏览器的流程:需要手动调用关闭浏览器方法
fix:调整了下载文件判断,如果下载结束后文件不存在则抛异常
This commit is contained in:
@@ -43,6 +43,8 @@ public class BaiHeHui extends Model {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
QQBotManager.getInstance().sendMessage(QQBotManager.defGroup, "百合会签到失败:" + AppTools.getExceptionString(e));
|
||||
}finally {
|
||||
WebClient.getInstance().quit();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -82,9 +84,6 @@ public class BaiHeHui extends Model {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
} finally {
|
||||
driver.close();
|
||||
driver.quit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,8 @@ public class NicePT extends Model {
|
||||
} catch (Exception e) {
|
||||
QQBotManager.getInstance().sendMessage(QQBotManager.defGroup, "NicePT签到失败:" + AppTools.getExceptionString(e));
|
||||
e.printStackTrace();
|
||||
}finally {
|
||||
WebClient.getInstance().quit();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -76,10 +78,6 @@ public class NicePT extends Model {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
} finally {
|
||||
driver.close();
|
||||
driver.quit();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,8 @@ public class Tsdm extends Model {
|
||||
} catch (Exception e) {
|
||||
QQBotManager.getInstance().sendMessage(QQBotManager.defGroup, "天使动漫签到失败:" + AppTools.getExceptionString(e));
|
||||
e.printStackTrace();
|
||||
}finally {
|
||||
WebClient.getInstance().quit();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -103,9 +105,6 @@ public class Tsdm extends Model {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
} finally {
|
||||
driver.close();
|
||||
driver.quit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ public class ZhuZhu extends Model {
|
||||
}else{
|
||||
QQBotManager.getInstance().sendMessage("HiRes论坛签到失败");
|
||||
}
|
||||
WebClient.getInstance().quit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,9 +70,6 @@ public class ZhuZhu extends Model {
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}finally {
|
||||
driver.close();
|
||||
driver.quit();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user