This commit is contained in:
2023-12-27 16:47:54 +08:00
parent 64173c1afa
commit 9f198edd1e
20 changed files with 110 additions and 65 deletions

View File

@@ -62,7 +62,7 @@ public class UrlCheckUtil {
}catch (SocketException e) {
return "404";
} catch (IOException e) {
System.out.println("报错");
System.out.println("报错");
return "404";
}
return String.valueOf(statusCode);
@@ -74,7 +74,7 @@ public class UrlCheckUtil {
public static boolean CheckHttp(String address) throws URISyntaxException, MalformedURLException {
URL url = new URL(address);
URI uri = url.toURI();
System.out.println(uri.getScheme());
// System.out.println(uri.getScheme());
if(uri.getScheme().equals("https")){
return true;
}else